File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ const FABExample = () => {
145145 < FAB . Group
146146 open = { open }
147147 icon = { open ? 'calendar-today' : 'plus' }
148+ accessibilityLabel = "Calendar FAB"
148149 toggleStackOnLongPress = { toggleStackOnLongPress }
149150 actions = { [
150151 { icon : 'plus' , onPress : ( ) => { } } ,
Original file line number Diff line number Diff line change @@ -383,8 +383,9 @@ const FABGroup = ({
383383 ] }
384384 pointerEvents = { open ? 'box-none' : 'none' }
385385 accessibilityRole = "button"
386- importantForAccessibility = "yes"
387- accessible = { true }
386+ importantForAccessibility = { open ? 'yes' : 'no-hide-descendants' }
387+ accessibilityElementsHidden = { ! open }
388+ accessible = { open }
388389 accessibilityLabel = { accessibilityLabel }
389390 >
390391 { it . label && (
You can’t perform that action at this time.
0 commit comments