From da9120e4051f4315ce8c7aa5c5a723c5628be77e Mon Sep 17 00:00:00 2001 From: Henry Heino Date: Tue, 17 Sep 2024 16:04:51 -0700 Subject: [PATCH 1/2] fix(fab.group): subitems are accessibility focusable when collapsed --- example/src/Examples/FABExample.tsx | 1 + src/components/FAB/FABGroup.tsx | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/example/src/Examples/FABExample.tsx b/example/src/Examples/FABExample.tsx index 52b6b4768f..47b7dea686 100644 --- a/example/src/Examples/FABExample.tsx +++ b/example/src/Examples/FABExample.tsx @@ -145,6 +145,7 @@ const FABExample = () => { {} }, diff --git a/src/components/FAB/FABGroup.tsx b/src/components/FAB/FABGroup.tsx index af1e85c4cb..d010393975 100644 --- a/src/components/FAB/FABGroup.tsx +++ b/src/components/FAB/FABGroup.tsx @@ -383,8 +383,9 @@ const FABGroup = ({ ]} pointerEvents={open ? 'box-none' : 'none'} accessibilityRole="button" - importantForAccessibility="yes" - accessible={true} + importantForAccessibility={open ? 'yes' : 'no-hide-descendants'} + accessibilityElementsHidden={!open} + accessible={open} accessibilityLabel={accessibilityLabel} > {it.label && ( From 8952646bbec001fc3816c0aeceb202bbb200236d Mon Sep 17 00:00:00 2001 From: Henry Heino Date: Tue, 17 Sep 2024 16:39:04 -0700 Subject: [PATCH 2/2] chore: Fix linter error --- example/src/Examples/FABExample.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/Examples/FABExample.tsx b/example/src/Examples/FABExample.tsx index 47b7dea686..d6eacd9cbe 100644 --- a/example/src/Examples/FABExample.tsx +++ b/example/src/Examples/FABExample.tsx @@ -145,7 +145,7 @@ const FABExample = () => { {} },