From 44738262dce45c1699d9069a3a887828dbfb1f29 Mon Sep 17 00:00:00 2001 From: waterplea Date: Mon, 18 Sep 2023 18:14:44 +0400 Subject: [PATCH] chore: add disabled state to mobile buttons --- .../experimental/components/button/button.style.less | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/projects/experimental/components/button/button.style.less b/projects/experimental/components/button/button.style.less index 4a05a2d34995..3874a46466f0 100644 --- a/projects/experimental/components/button/button.style.less +++ b/projects/experimental/components/button/button.style.less @@ -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; @@ -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; @@ -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] {