From e5879d3669468bbf233770ca7e00824624623d08 Mon Sep 17 00:00:00 2001 From: Eliza Khachatryan Date: Sun, 5 Feb 2023 22:26:48 -0800 Subject: [PATCH 1/2] fix(tree-item): reverses regression to bring back focus when navigating with keyboard --- src/components/tree-item/tree-item.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/tree-item/tree-item.scss b/src/components/tree-item/tree-item.scss index cd230cc5097..34e7998aafc 100644 --- a/src/components/tree-item/tree-item.scss +++ b/src/components/tree-item/tree-item.scss @@ -102,10 +102,10 @@ // focus styles :host { @apply focus-base; - &:focus, - &:active { - @apply focus-inset outline-none; - } +} + +:host(:focus:not([disabled])) { + @apply focus-inset outline-none; } slot[name="actions-end"]::slotted(*), From a818284ef86bc3670de445f6b5799d5a336d4c57 Mon Sep 17 00:00:00 2001 From: Eliza Khachatryan Date: Mon, 6 Feb 2023 11:01:08 -0800 Subject: [PATCH 2/2] simplify --- src/components/tree-item/tree-item.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tree-item/tree-item.scss b/src/components/tree-item/tree-item.scss index 34e7998aafc..539bb8cb5fa 100644 --- a/src/components/tree-item/tree-item.scss +++ b/src/components/tree-item/tree-item.scss @@ -104,7 +104,7 @@ @apply focus-base; } -:host(:focus:not([disabled])) { +:host(:focus) { @apply focus-inset outline-none; }