From 98c66af274b738d8158e6ac2ffe85d5fa7810c69 Mon Sep 17 00:00:00 2001 From: Vladimir Potekhin Date: Mon, 16 Dec 2024 18:37:21 +0300 Subject: [PATCH] chore(addon-mobile): fix disable button appearance on mobile --- .../addon-mobile/styles/common/button.less | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/projects/addon-mobile/styles/common/button.less b/projects/addon-mobile/styles/common/button.less index 218f48e28f70..40503ce221e9 100644 --- a/projects/addon-mobile/styles/common/button.less +++ b/projects/addon-mobile/styles/common/button.less @@ -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; + } } } }