More menu "feature toggle" invalid HTML #13903
Labels
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Type] Bug
An existing feature does not function as intended
[Type] Code Quality
Issues or PRs that relate to code quality
Noticed while reviewing #13059
The FeatureToggle component renders a
label
HTML attribute, which is invalid HTML. Seems to me thelabel
prop should only be used as children and not passed as a prop to MenuItem:gutenberg/packages/edit-post/src/components/header/feature-toggle/index.js
Lines 23 to 33 in 0f18024
otherwise, it gets rendered as an HTML attribute (which doesn't do anything other than invalidating the HTML):
The text was updated successfully, but these errors were encountered: