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:
@@ -1201,7 +1201,7 @@ impl Tab {
|
||||
Button::new((self.key.clone(), "tab-close"))
|
||||
.icon(IconRole::Close)
|
||||
.variant(ButtonVariant::Ghost)
|
||||
.small()
|
||||
.xsmall()
|
||||
.tab_stop(false)
|
||||
.debug_selector({
|
||||
let tabs_id = tabs_id.clone();
|
||||
|
||||
Reference in New Issue
Block a user