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 aria labels to toggle expand metadata (fixes issue 1081) #1156

Draft
wants to merge 16 commits into
base: dev
Choose a base branch
from

Conversation

jamesmisson
Copy link
Contributor

This is a fix for #1081. It defines strings for aria label prefixes and appends the label text to them (to create the text recommended in the issue comments), applying this string to each toggle button.

It's dependent on some changes to iiif-metadata-component, incorporating IIIF-Commons/iiif-metadata-component#33.

Waiting for French and Polish translations.

dependabot bot and others added 5 commits October 7, 2024 17:05
Copy link

vercel bot commented Oct 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
universalviewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 4:12pm

@demiankatz
Copy link
Contributor

@jamesmisson, I was able to resolve the conflicts here (they were caused by inconsistent indentation in a couple of the locale files). Now the Vercel build is passing! However, when I look at the preview, more buttons seem to be entirely absent, so something is broken (unless we need to wait for other component upgrades before this can work at all).

@demiankatz demiankatz marked this pull request as draft October 22, 2024 13:25
@demiankatz
Copy link
Contributor

I have also converted this to a draft to prevent it from getting accidentally merged before the translations are added. :-)

@jamesmisson
Copy link
Contributor Author

Thanks @demiankatz . the buttons won't appear until the iiif-metadata-component changes are made and imported here (which makes testing this tricky!)
IIIF-Commons/iiif-metadata-component#33

Copy link
Contributor

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

One small observation... and beyond that, I think we just need to leave this in draft mode until the other dependencies are released and ready to update!

src/locales/fr-FR.json Outdated Show resolved Hide resolved
Copy link
Contributor

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Thanks, @jamesmisson -- looks like a couple of things got accidentally reverted along with the whitespace changes.

@@ -97,7 +99,6 @@
"$rotateRight": "Pivoter à droite",
"$zoomIn": "Zoomer",
"$zoomOut": "Dézoomer",
"$adjustImage": "Ajuster l'image",
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to have been deleted by accident.

@@ -116,7 +117,7 @@
"$clickToZoomEnabled": "Cliquer pour zoomer",
"$reducedMotion": "Réduire le mouvement (désactive les animations)",
"$preserveViewport": "Conserver le zoom",
"$uvWebsite": "<a href='https://github.com/universalviewer/universalviewer#contributors'>En savoir + sur le Universal Viewer</a>",
"$uvWebsite": "<a href='https://github.com/universalviewer/universalviewer#contributors'>informations</a>",
Copy link
Contributor

Choose a reason for hiding this comment

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

This also seems to have been accidentally reverted.

@@ -97,7 +99,6 @@
"$rotateRight": "Obróć w prawo",
"$zoomIn": "Przybliż",
"$zoomOut": "Oddal",
"$adjustImage": "Dostosuj obraz",
Copy link
Contributor

Choose a reason for hiding this comment

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

This file seems to have the same two problems as the other one.

src/locales/pl-PL.json Outdated Show resolved Hide resolved
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.

2 participants