I am using Toggable Tabs from Twitters Bootstrap
The problem I have, Even you can see from the example too. That when the user clicks the tab, The active tab has the dot
The 'disabled' class or state itself is NOT for assistive devices.
I don't know where that information came from but it is completely false. 'Disabled' is a STATE wherein the button or anchor is NOT ENABLED. Meaning the user cannot click on it. Or, clicking it triggers no action. People with disabilities are not affected in any way by use of this tag. BTW- I am the web developer/designer for a non-profit that provides support and services to people with disabilities and I test my pages on a variety of devices, including screen readers and other assistive devices.
The class for a tab with focus is .focus
and the class for the active tab is .active
.
Designing for accessibility is crucial so always check your code with a W3C-compliant validator (like https://validator.w3.org/). Occasionally, I've had to manually control the tab or arrow order for tabs on a site via JavaScript but, generally, Bootstrap handles it pretty well.
Example:
I use the .disabled
class for web forms all the time. I have the Submit button disabled until all the required fields contain the proper information. Then, simply remove the .disabled
class and allow them to submit.
That said, you do need to include a border on focused/hover items for assistive devices. This allows the user to be able to track what they are 'hovering' over on your site. As mentioned above, you can restyle it to better fit your design or whatever but make sure you have something to indicate focus.
If anyone has countering info on this I'd be interested in reading it.