Skip to content

Commit

Permalink
chore: add disabled state to mobile buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea committed Sep 18, 2023
1 parent e0ccf9d commit 4473826
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions projects/experimental/components/button/button.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
--t-size: var(--tui-height-m);
--t-radius: var(--tui-radius-m);
font: var(--tui-font-text-m);
font-weight: bold;
padding: 0 1rem 0 0.625rem;
text-indent: 0.375rem;
gap: 0.125rem;
Expand All @@ -53,6 +54,7 @@
--t-size: var(--tui-height-l);
--t-radius: var(--tui-radius-l);
font: var(--tui-font-text-m);
font-weight: bold;
padding: 0 1.25rem 0 1rem;
text-indent: 0.25rem;
gap: 0.25rem;
Expand All @@ -76,6 +78,16 @@
* {
text-indent: 0;
}

&:disabled:not(._loading):not([data-platform='web']) {
background: var(--tui-clear);
color: var(--tui-clear-active);
opacity: 1;

&[data-appearance='flat'] {
background: transparent;
}
}
}

[tuiButtonNew] [tuiIconRight] {
Expand Down

0 comments on commit 4473826

Please sign in to comment.