From 752fdb04913b443b228647ce8ae86e5990bc343f Mon Sep 17 00:00:00 2001 From: Alquen Sarmiento Date: Tue, 11 Aug 2026 11:05:30 +0800 Subject: [PATCH] fix: increase the specificity of the stackable text alignment --- src/styles/block.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/styles/block.scss b/src/styles/block.scss index 485e21de4..b9a2507ee 100644 --- a/src/styles/block.scss +++ b/src/styles/block.scss @@ -391,7 +391,10 @@ } // Ensure that our alignments are applied to text. -.stk-block { +// WordPress introduces `:root .has-text-align-*` in version 7.0, +// so we increase the specificity of our selectors to ensure that +// our styles are applied correctly. +.stk-block.stk-block { &[class*="has-text-align-"], [class*="has-text-align-"] { text-align: var(--stk-alignment-text-align, start);