PostSchedule redundant label element #11747
Labels
[Type] Bug
An existing feature does not function as intended
[Type] Code Quality
Issues or PRs that relate to code quality
The PostSchedule component (Status & Visibility > Publish) currently renders 2
<label>
elements associated to the same control:gutenberg/packages/edit-post/src/components/sidebar/post-schedule/index.js
Lines 14 to 41 in baf0098
Technically, multiple labels are allowed but I'm not sure what is the purpose of the second label, as it's always hidden with
display: none
. Removing thedisplay: none
for testing purposes, reveals this:which repeats the scheduled date with a text "Click to change" that seems unnecessary to me and it's not perceived by anyone anyways:
gutenberg/packages/edit-post/src/components/sidebar/post-schedule/style.scss
Lines 6 to 8 in 5238c11
The text was updated successfully, but these errors were encountered: