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

make sure iiif drag and drop has aria-label #2625

Merged
merged 1 commit into from
Nov 5, 2024
Merged

make sure iiif drag and drop has aria-label #2625

merged 1 commit into from
Nov 5, 2024

Conversation

dnoneill
Copy link
Contributor

@dnoneill dnoneill commented Nov 1, 2024

closes #2483

link_url = format Settings.iiif_dnd_base_url, query: { manifest: manifest }.to_query
link_to link_url, class: 'iiif-dnd float-right', data: { turbolinks: false } do
link_to link_url, class: 'iiif-dnd float-right', data: { turbolinks: false },
aria: { label: document['title_display'] } do
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be something like "Drag to a IIIF viewer to open "#{document['title_display']}"" ?

Copy link
Contributor Author

@dnoneill dnoneill Nov 1, 2024

Choose a reason for hiding this comment

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

The ticket indicates no. I am assuming it is because the alt text indicates it is drag and drop?

<div class="col-2 col-md-1">
  <a class="iiif-dnd float-right" data-turbolinks="false" href=..." aria-label=" Cambridge, Corpus Christi College, MS 002I: The Bury Bible">
    <img alt="IIIF Drag-n-drop" src="..." width="30">
  </a>
</div>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jcoyne I talked with Alan. We have updated the aria label to include drag-n-drop and made the alt text empty.

@jcoyne jcoyne merged commit 05672a7 into main Nov 5, 2024
2 checks passed
@jcoyne jcoyne deleted the 2483-iiif-link branch November 5, 2024 14:48
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.

Unique links should have unique, meaningful text
2 participants