diff --git a/packages/block-library/src/button/editor.scss b/packages/block-library/src/button/editor.scss index e6301f241bacf2..b5b8a185731053 100644 --- a/packages/block-library/src/button/editor.scss +++ b/packages/block-library/src/button/editor.scss @@ -1,10 +1,10 @@ -.wp-block[data-align="center"] .wp-block-button { +.wp-block[data-align="center"] > .wp-block-button { text-align: center; margin-left: auto; margin-right: auto; } -.wp-block[data-align="right"] .wp-block-button { +.wp-block[data-align="right"] > .wp-block-button { /*!rtl:ignore*/ text-align: right; }