Skip to content

Commit da0c227

Browse files
feat(button): [button] Modify icon button up and down centering issue (#2423)
1 parent e6d4f17 commit da0c227

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/theme/src/button/index.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@
258258
&.is-only-icon.is-only-icon {
259259
// 只有default主题的边框色和 hover 边框色 是和主题色相反的。其它都随主题的色。
260260
// 仅图标的plain场景,无对应示例,不处理。
261+
display: inline-flex;
262+
align-items: center;
263+
justify-content: center;
261264
&.@{button-prefix-cls}--default {
262265
border-color: var(--tv-Button-border-color-only-icon-default);
263266

0 commit comments

Comments
 (0)