Add xsmall controls for close affordances

- Add the xsmall size class and Sizable::xsmall().
- Use xsmall close buttons in tabs, dialogs, and alerts.
- Assert xsmall and medium button heights.
This commit is contained in:
2026-11-16 19:05:44 +07:00
parent 03648469ec
commit be457c1bba
7 changed files with 71 additions and 11 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ impl RenderOnce for Alert {
Button::new((self.id.clone(), "alert-close"))
.icon(IconRole::Close)
.variant(ButtonVariant::Ghost)
.small()
.xsmall()
.accessibility_label("Dismiss")
.on_click(move |_, _window, cx| on_dismiss(cx))
});