Skip to content

Commit

Permalink
fix(comp:button): fix icon not vertically centered (#1542)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzaijiang committed May 8, 2023
1 parent b7e9b89 commit cf269a5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/components/button/style/index.less
Expand Up @@ -6,8 +6,9 @@
.reset-color(@button-color, @button-background-color);

position: relative;
display: inline-block;
text-align: center;
display: inline-flex;
align-items: center;
justify-content: center;
white-space: nowrap;
cursor: pointer;
user-select: none;
Expand Down
2 changes: 1 addition & 1 deletion packages/components/button/style/mixin.less
Expand Up @@ -3,7 +3,7 @@

height: @height;
min-width: @min-width;
padding: calc((@height - @font-size - var(--ix-line-height-gutter) - 2px) / 2) @padding-horizontal;
padding: 0 @padding-horizontal;

&.@{button-prefix}-circle,
&.@{button-prefix}-square {
Expand Down
1 change: 1 addition & 0 deletions packages/components/drawer/style/index.less
Expand Up @@ -59,6 +59,7 @@
}

&-footer {
display: flex;
padding: 12px 16px;

.@{button-prefix} + .@{button-prefix} {
Expand Down
3 changes: 2 additions & 1 deletion packages/components/modal/style/index.less
Expand Up @@ -124,7 +124,8 @@
}

&-footer {
text-align: end;
display: flex;
justify-content: flex-end;
padding: 12px 16px;

.@{button-prefix} + .@{button-prefix} {
Expand Down

0 comments on commit cf269a5

Please sign in to comment.