File tree Expand file tree Collapse file tree 1 file changed +7
-16
lines changed
src/scripts/OSFramework/OSUI/Pattern/BottomSheet Expand file tree Collapse file tree 1 file changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -238,22 +238,13 @@ namespace OSFramework.OSUI.Patterns.BottomSheet {
238238 Helper . A11Y . RoleComplementary ( this . selfElement ) ;
239239 }
240240
241- Helper . Dom . Attribute . Set (
242- this . selfElement ,
243- Constants . A11YAttributes . Aria . Hidden ,
244- ( ! this . _isOpen ) . toString ( )
245- ) ;
246-
247- Helper . Dom . Attribute . Set (
248- this . selfElement ,
249- Constants . A11YAttributes . TabIndex ,
250- this . _isOpen
251- ? Constants . A11YAttributes . States . TabIndexShow
252- : Constants . A11YAttributes . States . TabIndexHidden
253- ) ;
254-
255- // Will handle the tabindex value of the elements inside pattern
256- Helper . A11Y . SetElementsTabIndex ( this . _isOpen , this . _focusTrapInstance . focusableElements ) ;
241+ if ( this . _isOpen ) {
242+ Helper . A11Y . TabIndexTrue ( this . selfElement ) ;
243+ Helper . A11Y . AriaHiddenFalse ( this . selfElement ) ;
244+ } else {
245+ Helper . A11Y . TabIndexFalse ( this . selfElement ) ;
246+ Helper . A11Y . AriaHiddenTrue ( this . selfElement ) ;
247+ }
257248 }
258249
259250 /**
You can’t perform that action at this time.
0 commit comments