Fix: accessible copy to clipboard button#376
Merged
rami-elementor merged 1 commit intocore-betafrom May 4, 2026
Merged
Conversation
sheabunge
approved these changes
May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request improves the user experience and accessibility of the
CopyToClipboardButtoncomponent by adding status messages and ensuring that screen readers can announce the result of copy actions.Accessibility and user feedback improvements:
STATUS_MESSAGESrecord to map each copy status to a user-friendly, localized message, such as "Copied to clipboard." or "Failed to copy to clipboard. Please try again." (src/js/components/common/CopyToClipboardButton.tsx)<span>with appropriate ARIA roles (alertorstatus) andaria-liveattributes, allowing screen readers to announce the copy result. The message updates based on the current status. (src/js/components/common/CopyToClipboardButton.tsx)src/js/components/common/CopyToClipboardButton.tsx)