Components: Ensure that ExternalLink component doesn't show up visually hidden elements when rendered outside of WordPress #18127
Labels
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
Needs Dev
Ready for, and needs developer efforts
[Package] Components
/packages/components
[Status] In Progress
Tracking issues with work in progress
Storybook
Storybook and its stories for components
[Type] Code Quality
Issues or PRs that relate to code quality
Describe the bug
Discovered when testing the Storybook integration of the
ExternalLink
component. See the related comment #18084 (comment):To reproduce
Steps to reproduce the behavior:
npm run design-system:dev
.ExternalLink
section.Expected behavior
(open in a new tab)
text is only visible for screen readers. Instead of using the classscreen-reader-text
, the text should be put inside theVisuallyHidden
component introduced by @mkaz in #18022. You can also check a similar refactoring in #18013.The text was updated successfully, but these errors were encountered: