Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs clean up - unnecessary role attributes, callout clarifications #15125

Merged
merged 3 commits into from
Nov 17, 2014
Merged

Docs clean up - unnecessary role attributes, callout clarifications #15125

merged 3 commits into from
Nov 17, 2014

Conversation

patrickhlauke
Copy link
Member

The removal of role="form" may be considered contentious. It seems that, compared to the clear-cut case of <nav> not needing role="navigation", <form> does not explicitly get a role of form (at least, it doesn't seem to be exposed in my quick testing). So, having role="form" can be useful, but only in cases where the author wants to make a form an explicit important landmark. For this reason (requires explicit author intent), I'd leave the attribute out from the general examples here.

Fixes #15109.

@hnrch02 hnrch02 added this to the v3.3.2 milestone Nov 14, 2014
@cvrebert
Copy link
Collaborator

(Fixed Markdown formatting in your description by adding backticks around <tag>s so that they're visible.)

@patrickhlauke
Copy link
Member Author

btw my esteemed colleague and ARIA guru @stevefaulkner confirms that those role="form" can be removed without space-time collapsing for AT users...

@XhmikosR
Copy link
Member

@patrickhlauke: don't forget a rebase and squash when you are ready.

plus one example that still used the old <div role="navigation"> and a
fix-up of the callout as per
#15109
@patrickhlauke
Copy link
Member Author

You forcing me to learn git yet again, eh? Done. To avoid my usual "mega-PR" syndrome, i'll leave this at that...

@XhmikosR
Copy link
Member

Looks much better now, thanks!

PS. I'm against one commit PRs too. I just like having clean, separate patches.

@XhmikosR
Copy link
Member

Where are we on this guys?

@patrickhlauke
Copy link
Member Author

good from my end. i've double-checked with a few more colleagues in the accessibility community, and the overall consensus is that those roles are redundant

@XhmikosR
Copy link
Member

Cool, then. @cvrebert: push the button!

cvrebert added a commit that referenced this pull request Nov 17, 2014
Docs clean up - unnecessary role attributes, callout clarifications
@cvrebert cvrebert merged commit 450a9ec into twbs:master Nov 17, 2014
@juthilo juthilo mentioned this pull request Nov 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

role="navigation" in navbars is redundant since they use <nav>?
5 participants