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

Image Gallery Demo #193

Open
zoltan-dulac opened this issue Aug 6, 2024 · 0 comments
Open

Image Gallery Demo #193

zoltan-dulac opened this issue Aug 6, 2024 · 0 comments
Assignees

Comments

@zoltan-dulac
Copy link
Collaborator

zoltan-dulac commented Aug 6, 2024

Image Gallery component demo. Image Galleries need to be coded a particular way to work properly.

Solution: Make sure the following requirements are in place:

  • Side arrows do not get keyboard focus.
  • Pagination dots below the carousel get keyboard focus. They must be coded as buttons. Their labels should be "Display photo 1 of X"
  • Activating the button with the keyboard moves the panel into view THE SAME WAY AS CLICKING THE MOUSE ON AN ARROW BUTTON.
  • Each image in the carousel must have a descriptive alt attribute. When the image moves into view, at the same time, inject the alt attribute content into an empty div with an aria-live="polite" attribute. Since the content within the div is changing, the screen reader will announce the alt attribute.

Use the Shiseido image gallery as a starting point:
https://www.shiseido.com/us/en/colorgel-lipbalm-9990000000180.html?cgid=lips

Don't use any images from a real company -- they are copyrighted.
The large images should have alt text generated from ChatGPT 4.0 Turbo with Images.

Make a gallery of images from here: https://commons.wikimedia.org/wiki/Main_Page

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

No branches or pull requests

2 participants