-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
[Block] ButtonsAffects the Buttons BlockAffects the Buttons Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress
Description
As reported here.
When users add a link in the button block and mark it as nofollow, the resulting HTML comment adds unnecessary space before the attribute.
Steps to reproduce
- Add a button block and insert a link
- Edit the link and check the mark as nofollow option
- View the resulting HTML code via the Code editor
- OR inspect the button element via the browser
- Notice the link's
rel=" nofollow"attribute has space before the string
I've checked some other blocks that have "rel" attribute enabled (e.g. custom link, social icons, title, featured image, image, media, and text) with the help of this list and found that it only affects the button block.
As a workaround, users can edit the button instances via the code editor view and make the necessary edits to the HTML code there.
Environment
Studio, Local
WP 6.6.2 with/without Gutenberg 19.4.0
WP 6.7-beta3 without Gutenberg
Metadata
Metadata
Assignees
Labels
[Block] ButtonsAffects the Buttons BlockAffects the Buttons Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress
