Skip to content

Commit

Permalink
fix: fix button vertical align with icon (#2440)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaiQiangReal authored Aug 23, 2024
1 parent 295b8ff commit be0fb99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/semi-foundation/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ $module: #{$prefix}-button;
}
}

&-content{
display: flex;
align-items: center;
}

&-danger {
background-color: $color-button_danger-bg-default;
color: $color-button_danger-text-default;
Expand Down
6 changes: 5 additions & 1 deletion packages/semi-foundation/button/iconButton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,16 @@ $module: #{$prefix}-button;

&-left {
margin-right: $spacing-button_iconOnly_content-marginRight;
display: flex;
align-items: center;
}

&-right {
margin-left: $spacing-button_iconOnly_content-marginLeft;
display: flex;
align-items: center;
}
}
}

@import "./rtl.scss";
@import "./rtl.scss";

0 comments on commit be0fb99

Please sign in to comment.