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

Accessibility issue 1 - provide copy code button to help keyboard users #255

Open
karypun opened this issue Jun 22, 2021 · 1 comment
Open

Comments

@karypun
Copy link
Contributor

karypun commented Jun 22, 2021

Pages affected: all component pages
Issue: Code blocks cannot be "scrolled" by keyboard users (fails WCAG guideline 2.1.1 Keyboard)
Resolution: Give the block focus or implement a "copy code" button as in the gov.uk design system

@karypun karypun changed the title Accessibility fixes Accessibility issue 1 Jun 23, 2021
@karypun karypun changed the title Accessibility issue 1 Accessibility issue 1 - provide copy code button to help keyboard users Jun 23, 2021
@haggishunt56 haggishunt56 self-assigned this Aug 3, 2021
@daniel-ac-martin
Copy link
Collaborator

This is a bit tricky as we don't currently run with client-side rendering.
Normally in React you'd just define an onClick function to populate the clipboard.
I'm not sure about a nice way to do this without client-side rendering. I'd need to think about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants