Skip to content

Commit

Permalink
chore(addon-mobile): fix disable button appearance on mobile (#9997)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Dec 18, 2024
1 parent 13dcf7c commit c56cfbf
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions projects/addon-mobile/styles/common/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,21 @@
font-weight: bold;
}

&[data-appearance^='primary']:disabled:not(._loading),
&[data-appearance^='secondary']:disabled:not(._loading),
&[data-appearance^='accent']:disabled:not(._loading),
&[data-appearance^='destructive']:disabled:not(._loading),
&[data-appearance^='opposite']:disabled:not(._loading),
&[data-appearance^='flat']:disabled:not(._loading) {
background: var(--tui-background-neutral-1);
color: var(--tui-text-tertiary);
opacity: 1;
&[data-appearance^='primary'],
&[data-appearance^='secondary'],
&[data-appearance^='accent'],
&[data-appearance^='destructive'],
&[data-appearance^='opposite'],
&[data-appearance^='flat'] {
&:disabled:not(._loading),
&[data-state='disabled']:not(._loading) {
background: var(--tui-background-neutral-1);
color: var(--tui-text-tertiary);
opacity: 1;

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

0 comments on commit c56cfbf

Please sign in to comment.