Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix button demo in the component preview (#23423)

k4leg6eaaced60ddd
diff --git a/crates/ui/src/components/button/button.rs b/crates/ui/src/components/button/button.rs
index 74548c48b86..1e0e8a6237d 100644
--- a/crates/ui/src/components/button/button.rs
+++ b/crates/ui/src/components/button/button.rs
@@ -527,7 +527,7 @@ impl ComponentPreview for Button {
),
single_example(
"Tinted Icons",
- Button::new("icon_color", "Error")
+ Button::new("tinted_icons", "Error")
.style(ButtonStyle::Tinted(TintColor::Error))
.color(Color::Error)
.icon_color(Color::Error)