knownasilya / ember-toggle

Checkbox based Toggle Switches for Ember

Home Page:http://knownasilya.github.io/ember-toggle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A11Y error due to tabindex > 0

Willibaur opened this issue Β· comments

Thanks for this awesome addon.

Below you will see an A11Y error related, it was catched by ember-A11Y-testing it seems an easy one to fix on πŸ‘‰ x-toggle/component.js

image

I'm happy to create a PR if you agree this should be tabindex: '0'.

Thanks

Could probably just remove the tabindex all together and users can apply those as needed.

I'm not sure, as a general A11Y rule, it should be tabindex: 0, so what about to set it to that value by default within the addon, but give the option to the user to modify as required @knownasilya like we do with offLabel property ?

The user can already set it, e.g. {{x-toggle tabindex='0'}}

I'll change it to '0'

Thanks for the fix @knownasilya

Released in 5.3.1