From 267e332a2ace049ede7fbf394ce8fc7d49d000b3 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Fri, 30 Aug 2024 18:05:44 +0900 Subject: [PATCH] Add fallback style for old markup --- packages/block-library/src/form-input/style.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/block-library/src/form-input/style.scss b/packages/block-library/src/form-input/style.scss index 33dc54b4340a3..7b1ac53cc89c0 100644 --- a/packages/block-library/src/form-input/style.scss +++ b/packages/block-library/src/form-input/style.scss @@ -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 {