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.

Identify `IconButton`

Marshall Bowers92542e6b94b5
diff --git a/crates/ui2/src/components/icon_button.rs b/crates/ui2/src/components/icon_button.rs
index cf8d3119294..ce3c2a9421c 100644
--- a/crates/ui2/src/components/icon_button.rs
+++ b/crates/ui2/src/components/icon_button.rs
@@ -88,6 +88,8 @@ impl<S: 'static + Send + Sync> IconButton<S> {
};
let mut button = h_stack()
+ // TODO: We need to pass the ID in so that `IconButton`s can be differentiated from one another.
+ .id("icon_button")
.justify_center()
.rounded_md()
.py(ui_size(cx, 0.25))