Editor package: invalid DOM nesting in PostPublishPanelToggle component #9033
Labels
[Feature] NUX
Anything that impacts the new user experience
[Package] Editor
/packages/editor
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Milestone
Describe the bug
Using the
PostPublishPanelToggle
component from@wordpress/editor
package produces the following console warning:This is caused by the fact that
PostPublishPanelToggle
nests aDotTip
inside of abutton
:gutenberg/packages/editor/src/components/post-publish-panel/toggle.js
Lines 45 to 57 in 94f5489
and
DotTip
in turn renders a button too (or two ifIconButton
renders it):gutenberg/packages/nux/src/components/dot-tip/index.js
Lines 41 to 51 in 09dc71c
To Reproduce
Related issue
A similar issue exist in
edit-post
's header component, whereDotTip
is nested inside ofIconButton
:https://github.com/WordPress/gutenberg/blob/master/edit-post/components/header/index.js#L57-L68
The text was updated successfully, but these errors were encountered: