Skip to content

Improve accessibility support for the lightbox dialog and counter#2184

Open
preethiramiah wants to merge 5 commits into
dimsemenov:masterfrom
miranj:master
Open

Improve accessibility support for the lightbox dialog and counter#2184
preethiramiah wants to merge 5 commits into
dimsemenov:masterfrom
miranj:master

Conversation

@preethiramiah

Copy link
Copy Markdown

Summary

Improves screen reader support for the PhotoSwipe dialog:

  • aria-modal="true" on the root .pswp element.
  • aria-label on the root, configurable via a new ariaLabel option and defaults to "Full-size image gallery".
  • role="status" on the counter element - the counter ("2 / 10") updates on every slide change; marking it as a live status region lets screen readers announce the current position as the user navigates.
image

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.

1 participant