diff --git a/crates/story/src/button_story.rs b/crates/story/src/button_story.rs index 03689a54..c582474a 100644 --- a/crates/story/src/button_story.rs +++ b/crates/story/src/button_story.rs @@ -402,7 +402,7 @@ impl Render for ButtonStory { Button::new("button-xs-1", cx) .label("Primary Button") .primary() - .small() + .xsmall() .disabled(disabled) .selected(selected) .loading(loading) diff --git a/crates/ui/src/button.rs b/crates/ui/src/button.rs index 22d3b7b6..dd9afa74 100644 --- a/crates/ui/src/button.rs +++ b/crates/ui/src/button.rs @@ -342,7 +342,7 @@ impl RenderOnce for Button { match self.size { Size::Size(size) => this.px(size * 0.2), Size::XSmall => this.h_5().px_1(), - Size::Small => this.h_6().px_3().when(self.compact, |this| this.px_2()), + Size::Small => this.h_6().px_3().when(self.compact, |this| this.px_1p5()), _ => this.h_8().px_4().when(self.compact, |this| this.px_2()), } }