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

♿ Adds Alt & aria-label to Placeholder Images #14391

Merged
merged 9 commits into from
Apr 5, 2018

Conversation

gulliverhan
Copy link
Contributor

addresses Issue #5508

Adds alt tag & propagates aria label to the placeholder images for

amp-brid-player
amp-jwplayer
amp-kaltura-player
amp-springboard-player
amp-youtube

@cathyxz cathyxz self-requested a review April 3, 2018 19:41
@cathyxz cathyxz self-assigned this Apr 3, 2018
Copy link
Contributor

@cathyxz cathyxz left a comment

Choose a reason for hiding this comment

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

One nit on a duplicate line. Nice job!

placeholder.setAttribute('layout', 'fill');
placeholder.setAttribute('placeholder', '');
placeholder.setAttribute('referrerpolicy', 'origin');
placeholder.setAttribute('alt', 'loading video');
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is duplicated below under the else block. You can remove it.

@gulliverhan
Copy link
Contributor Author

well spotted - have removed that line

@cathyxz
Copy link
Contributor

cathyxz commented Apr 4, 2018

@gulliverhan could you merge master onto this branch to incorporate the most recent test fixes? This will make CI more reliable and likely to pass. Sorry about that.

@cathyxz cathyxz merged commit 345314d into ampproject:master Apr 5, 2018
@cathyxz
Copy link
Contributor

cathyxz commented Apr 5, 2018

Thank you!

glevitzky pushed a commit that referenced this pull request Apr 27, 2018
* adds alt & aria label to brid-player & tests

* adds alt & aria-label to amp-jwplayer & tests to cover

* adds alt & aria-label to amp-kaltura-player & tests

* adds alt & aria-label to placeholder img for amp-springboard-player

* adds alt & aria-label attributes to img placeholder for amp-youtube

* fixes lint errors

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

Successfully merging this pull request may close these issues.

None yet

4 participants