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

Add default aria-live attributes to amp-live-list and amp-fresh #8988

Merged
merged 3 commits into from Apr 28, 2017

Conversation

kmh287
Copy link
Contributor

@kmh287 kmh287 commented Apr 27, 2017

This PR gives these elements aria-live=polite by default, but allows this to be explicitly overridden by developers.

Fixes #5512

/to @aghassemi

Copy link
Contributor

@aghassemi aghassemi left a comment

Choose a reason for hiding this comment

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

Awesome!

@@ -255,6 +255,22 @@ describe('amp-live-list', () => {
}).to.throw(/must have an "items" slot/);
});

it('should have aria-live=polite by default', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

actual code is testing the override case though (same issue with test-amp-fresh.js as well) Let's have two tests, one for default and one for override.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@aghassemi aghassemi left a comment

Choose a reason for hiding this comment

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

LGTM

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.

None yet

3 participants