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

[EuiCodeBlock] set custom aria-label for Copy button #8004

Open
alexwizp opened this issue Sep 5, 2024 · 0 comments
Open

[EuiCodeBlock] set custom aria-label for Copy button #8004

alexwizp opened this issue Sep 5, 2024 · 0 comments
Assignees

Comments

@alexwizp
Copy link
Contributor

alexwizp commented Sep 5, 2024

Description

During accessibility testing, our auditor pointed out that on some pages with two or more EuiCodeBlock components, there are multiple buttons with the aria-label="Copy". This violates the WCAG 2.2 guideline on "Info and Relationships".

Let's discuss the available options for addressing this issue.

I see 2 options:

  1. Update API to make possible to override aria-label attribute for Copy button
  2. Using the root level aria-label attribute (already in API), do something like: Copy {rootLevelAriaLabel} code snippet

Screen

Image

Related to: https://github.com/elastic/observability-accessibility/issues/129

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

2 participants