-
Notifications
You must be signed in to change notification settings - Fork 215
Featured items: ensure valid DOM nesting in inspector controls #6501
Featured items: ensure valid DOM nesting in inspector controls #6501
Conversation
|
Size Change: +50 B (0%) Total Size: 862 kB
ℹ️ View Unchanged
|
sunyatasattva
left a comment
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 for spotting this! I wonder why I couldn't reproduce and how come we didn't notice earlier, as this change was introduced at the beginning of the project.
But thanks for the fix. I'm more a fan of giving these spans a className (like help-text or something) and styling them through CSS, but I don't have a strong stance on this, so I'm approving.
Usually, I'd 100% agree. This is in the editor sidebar though. I'd argue we'd want to keep the styling surface to an absolute minimum there and providing an additional class that folks could attach more styles to could be a precedent we don't want. |
This PR is a follow-up on one of a couple of small issues we discovered since the recent updates of the featured item blocks (the other issue was fixed in #6499).
This PR aims to resolve a console error that's being thrown when interacting with the Featured Product/Category blocks. The issue occurred in the help text being added in the editor sidebar. It was caused by a block-level element being included in a
<p>element, which must only contain inline containers.Screenshots
Testing
Featured Productor aFeatured Categoryblock and open the console.