From 44b74919686797f4f1ad1d45c881dfe896143227 Mon Sep 17 00:00:00 2001 From: splincode Date: Mon, 12 Aug 2024 16:51:49 +0300 Subject: [PATCH 1/2] fix(core): ignore pointer events for disabled button --- projects/core/components/button/button.style.less | 4 ++++ .../demo/src/modules/components/button/examples/1/index.less | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/projects/core/components/button/button.style.less b/projects/core/components/button/button.style.less index 98f6a1e9be39..b513dd92567f 100644 --- a/projects/core/components/button/button.style.less +++ b/projects/core/components/button/button.style.less @@ -18,6 +18,10 @@ outline: none; color: inherit; + &:disabled { + pointer-events: none; + } + &[data-shape='rounded'] { border-radius: 6.25rem; } diff --git a/projects/demo/src/modules/components/button/examples/1/index.less b/projects/demo/src/modules/components/button/examples/1/index.less index 0c88b9d3970a..274519671655 100644 --- a/projects/demo/src/modules/components/button/examples/1/index.less +++ b/projects/demo/src/modules/components/button/examples/1/index.less @@ -17,3 +17,8 @@ animation: rotating 1.5s linear infinite; } } + +button:hover, +a:hover { + outline: 2px solid var(--tui-accent-hover); +} From 823b0893c389209dc9f4fa65200d071343ddeeab Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Tue, 13 Aug 2024 10:54:01 +0300 Subject: [PATCH 2/2] chore: revert file --- .../demo/src/modules/components/button/examples/1/index.less | 5 ----- 1 file changed, 5 deletions(-) diff --git a/projects/demo/src/modules/components/button/examples/1/index.less b/projects/demo/src/modules/components/button/examples/1/index.less index 274519671655..0c88b9d3970a 100644 --- a/projects/demo/src/modules/components/button/examples/1/index.less +++ b/projects/demo/src/modules/components/button/examples/1/index.less @@ -17,8 +17,3 @@ animation: rotating 1.5s linear infinite; } } - -button:hover, -a:hover { - outline: 2px solid var(--tui-accent-hover); -}