Skip to content

Commit

Permalink
Add fallback style for old markup
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Aug 30, 2024
1 parent 3733040 commit 267e332
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-library/src/form-input/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
margin: 0;
}
}

&:has(.wp-block-form-input__label-content + input[type="checkbox"]) {
/* stylelint-disable-next-line declaration-property-value-allowed-list -- This style is required for old markup. */
flex-direction: row-reverse;
}
}

.wp-block-form-input__label-content {
Expand Down

0 comments on commit 267e332

Please sign in to comment.