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

feat: significantly improve ARIA support #1065

Merged
merged 12 commits into from Feb 8, 2017
Merged

feat: significantly improve ARIA support #1065

merged 12 commits into from Feb 8, 2017

Conversation

marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres commented Feb 2, 2017

  • document now signals when busy
  • pre elements that are getting changed now signal when busy
  • ReSpec pill is still not great... but less crappy: DOM ordering is not correct for tabbing. Correct roles and labels applied. We also notify when things menus and dialogs open and close.

It's far from perfect, but it's hopefully a huge improvement.

@marcoscaceres
Copy link
Member Author

Added description above noting the changes. @halindrome, please to review. Please let know if you want to make changes... we should merge core/aria with w3c/aria. It seems people might benefit in general from the w3c/aria stuff, as it's not W3C specific, AFAICT.

@marcoscaceres marcoscaceres force-pushed the core-aria branch 2 times, most recently from 33f6364 to 0644d29 Compare February 2, 2017 08:17
@marcoscaceres
Copy link
Member Author

The above should say "DOM ordering is now correct for tabbing".

@@ -0,0 +1,7 @@
import { sub } from "core/pubsubhub";

document.body.setAttribute("aria-busy", "true");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I think this should be aria-hidden. Some browsers do not allow the entire webview area to be marked as busy. We could try aria-hidden. Alternately, we could wrap the entire content in a div and then mark that div as busy / hidden.

@marcoscaceres
Copy link
Member Author

Merging for now. We can use this as a base to improve on... at least it's not as bad as it was

marcoscaceres added a commit that referenced this pull request Feb 8, 2017
* develop:
  v10.0.0
  Allow additional logo in CG spec (#821)
  feat: significantly improve ARIA support (#1065)
  fix(core/markdown): elements are not corrently positioned (#1071)
Copy link

@majornista majornista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit introduces accessibility problems by adding aria-live="polite" to every code sample in a spec.

}
const msg = {
action: "highlight",
code: element.textContent,
id: Math.random().toString(),
languages: getLanguageHint(element.classList),
};

element.setAttribute("aria-live", "polite");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This presents a significant accessibility problem for screen reader users trying to read a spec containing a lot of code examples, because every code sample is sent to the the screen reader buffer to announce at its earliest convenience. I've sometimes been unable to test a page with VoiceOver with a W3C spec open in another tab, because all I hear are source code examples from the spec being announced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants