Skip to content

Commit

Permalink
fix(components/button): span 内部为 i 标签的时候不会垂直居中
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxinssfd committed Jul 27, 2023
1 parent 73d2ff0 commit 9dd4014
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/src/button/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ $r: Name.$button;
// transition-property: all;
transition-timing-function: ease-in-out;
transition-duration: var(--t-transition-duration);
& > span {
display: inline-flex;
align-items: center;
}
&:not([disabled]):hover {
--t-btn-color: var(--t-btn-hover-color);
--t-btn-bg-color: var(--t-btn-hover-bg-color);
Expand Down

0 comments on commit 9dd4014

Please sign in to comment.