Select to view content in your preferred language

Is setting a tabindex supported

460
1
Jump to solution
10-19-2022 07:15 AM
GregoryBologna
Frequent Contributor

elem.setAttribute('tabindex', '2'); -- or -- elem.tabIndex = 2;

no change

 

<calcite-dropdown-item tabindex="0" ... calcite-hydrated="">

 

 

0 Kudos
1 Solution

Accepted Solutions
KittyHurley
Esri Contributor

Hi @GregoryBologna, We don't support user-defined tabindex on components at this time. However, there is an open issue to allow setting a tabindex of "-1" to calcite-button.

As for setting tabindex's above 0, it is not a recommended practice with Calcite for accessibility as it can create maintainability problems and unexpected user behavior. Additional background on tabindex is available on mdn's site.

View solution in original post

0 Kudos
1 Reply
KittyHurley
Esri Contributor

Hi @GregoryBologna, We don't support user-defined tabindex on components at this time. However, there is an open issue to allow setting a tabindex of "-1" to calcite-button.

As for setting tabindex's above 0, it is not a recommended practice with Calcite for accessibility as it can create maintainability problems and unexpected user behavior. Additional background on tabindex is available on mdn's site.

0 Kudos