Skip to content

Commit

Permalink
🐛 - fix: fixed that the button gets display property if hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaohs committed Oct 15, 2024
1 parent db50cbe commit e5a6d64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
box-sizing: border-box;
color: var(--mykn-button-color-text);
cursor: pointer;
display: inline-flex;
gap: 0.5em;
height: var(--mykn-button-height);
font-family: var(--typography-font-family-body);
Expand All @@ -43,6 +42,10 @@
white-space: nowrap;
width: var(--mykn-button-width);

&:not([hidden]) {
display: inline-flex;
}

&#{&}:disabled,
&#{&}--disabled,
&#{&}--muted {
Expand Down

0 comments on commit e5a6d64

Please sign in to comment.