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

[accessibility] add aria-hidden for icons so Screen Reader will ignore them #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gasolin
Copy link
Contributor

@gasolin gasolin commented May 14, 2015

No description provided.

this.makeAccessible();
// offload the initiate operation to save loadtime
setTimeout(() => {
this.makeAccessible();
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you give more detail in this comment. IE. What is expensive?

NIT: setTimeout(() => this.makeAccessible());

@gasolin
Copy link
Contributor Author

gasolin commented May 19, 2015

put makeAccessible into setTimeout improve loadtime from 1415ms -> 1363ms

@gasolin gasolin force-pushed the a11y branch 2 times, most recently from 34c465a to 126d498 Compare May 21, 2015 03:05
@gasolin
Copy link
Contributor Author

gasolin commented May 21, 2015

test script is available in #15

@@ -31,11 +31,21 @@ module.exports = component.register('gaia-list', {
this.setupShadowRoot();
this.els = { inner: this.shadowRoot.querySelector('.inner') };
this.addEventListener('click', this.onPointerDown);
this.makeAccessible();
// put non-critical operations in post-load time frame
// to save loadtime.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we explain why this is faster

@gasolin gasolin force-pushed the a11y branch 2 times, most recently from 855a5ff to 06f1f6c Compare May 22, 2015 02:57
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

2 participants