-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Tag cloud: Disable clicking on the tag links in the editor #47338
Conversation
Size Change: +9 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in b56bb0f. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3983124910
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Carolina!
This bug happens every now and then as people implement new blocks, and I wonder if Or at the very least, for compatibility, raise a warning, something like:
|
What?
Wraps the tag cloud block in
<Disabled>
to prevent clicking the tag links while in the editors.Closes #47295
Why?
Clicking the links would try to load the link target inside the editors.
It was easy to click the links by mistake when trying to select the block.
Testing Instructions
After placing the block, clicking anywhere in the block, including direct clicks on the tag links, should select the block, not the link.
Testing Instructions for Screen reader users
Before this PR, the screen reader would announce the individual links inside the tag cloud.
With this change, the screen reader will only announce the block name when selected, and will not read the inner content.
Not receiving information about the tag links that are present is a regression, is there a better way to disable the clicking?
The block is server side rendered.