Skip to content

Commit 47dce10

Browse files
committed
Fix icon button
1 parent f17656c commit 47dce10

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

scss/_components.button.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ $btn-height-computed: $btn-font-size-md * $btn-line-height + 2 * nth($btn-paddin
8989

9090
.btn.btn--icon {
9191
width: $btn-height-computed;
92+
height: $btn-height-computed;
93+
padding: 0;
94+
> * {
95+
position: absolute;
96+
top: 50%;
97+
left: 50%;
98+
transform: translate(-50%, -50%);
99+
}
92100
}
93101

94102
.btn.btn--black {

0 commit comments

Comments
 (0)