From 6195fc347fc654ffc567bf3c1a1efa7f48627f6a Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Tue, 19 Mar 2024 09:30:24 +0400 Subject: [PATCH] File: Add center alignment editor class for classic themes (#59975) Co-authored-by: Mamaduka Co-authored-by: t-hamano Co-authored-by: sabernhardt --- packages/block-library/src/file/editor.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/block-library/src/file/editor.scss b/packages/block-library/src/file/editor.scss index 365ba5ec1dc22..1a38662381447 100644 --- a/packages/block-library/src/file/editor.scss +++ b/packages/block-library/src/file/editor.scss @@ -4,6 +4,9 @@ // Stop file block from collapsing when floated. height: auto; } + .wp-block[data-align="center"] > & { + text-align: center; + } display: flex; flex-wrap: wrap;