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 amp-image-lightbox screen reader close button #5894

Merged
merged 1 commit into from Oct 31, 2016

Conversation

jridgewell
Copy link
Contributor

No description provided.

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.

Thanks!

@@ -736,6 +736,18 @@ class AmpImageLightbox extends AMP.BaseElement {
this.captionElement_.classList.add('-amp-image-lightbox-caption');
this.container_.appendChild(this.captionElement_);

// Invisible close button at the end of lightbox for screen-readers.
const screenReaderCloseButton = this.document_.createElement('button');
Copy link
Contributor

Choose a reason for hiding this comment

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

this.element.ownerDocument

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ha, that copy pasting.

@jridgewell jridgewell merged commit d2a976b into ampproject:master Oct 31, 2016
@jridgewell jridgewell deleted the amp-image-lightbox-a11y branch October 31, 2016 17:34
Lith pushed a commit to Lith/amphtml that referenced this pull request Dec 22, 2016
Lith pushed a commit to Lith/amphtml that referenced this pull request Dec 22, 2016
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

2 participants