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

a11y: refactor download attribution and item embed code snippets #2553

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

LeoniePeters
Copy link
Contributor

@LeoniePeters LeoniePeters commented Jan 29, 2025

  • Refactors the item attribution (in the DownloadSuccesModal) and ItemEmbedCode into a new component ItemSnippetCopyButton:
    • from forms with textarea's to cite and code elements
    • the text snippet is accompanied by a hidden button for AT (assistive technologies) users to be able to reach, understand and 'click' (copy) the text snippet
    • move the embed code fetch from deprecated ItemEmbedCode to ItemHero (once fetched the embedCode is stored in the component's state preventing re-fetching on modal hide/show)
    • align styles for both snippets to former attribution snippet
  • Sets correct title and header tags for download success and share modals

Copy link

JIRA ticket: EC-6625

Copy link

Preview deployment: https://pr-2553.portal-js.dev.eanadev.org/

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