From e9e3ae1d3272240c8f14999c157d5cdab522feaa Mon Sep 17 00:00:00 2001 From: mtdkei Date: Mon, 26 Aug 2024 12:53:29 +0900 Subject: [PATCH] Add important to dynamically generated list styles --- inc/vk-blocks/extensions/core/list.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/vk-blocks/extensions/core/list.php b/inc/vk-blocks/extensions/core/list.php index 6b401a6b7..4783b97aa 100644 --- a/inc/vk-blocks/extensions/core/list.php +++ b/inc/vk-blocks/extensions/core/list.php @@ -49,7 +49,7 @@ function vk_blocks_render_core_list( $block_content, $block ) { 'selector' => ".is-style-vk-numbered-square-mark.{$unique_classname} li::before", 'declarations' => array( 'color' => '#fff', - 'background-color' => vk_blocks_get_color_code( $block['attrs']['color'] ), + 'background-color' => vk_blocks_get_color_code( $block['attrs']['color'] ) . ' !important', ), ), ); @@ -59,7 +59,7 @@ function vk_blocks_render_core_list( $block_content, $block ) { 'selector' => ".is-style-vk-numbered-circle-mark.{$unique_classname} li::before", 'declarations' => array( 'color' => '#fff', - 'background-color' => vk_blocks_get_color_code( $block['attrs']['color'] ), + 'background-color' => vk_blocks_get_color_code( $block['attrs']['color'] ) . ' !important', ), ), ); @@ -68,7 +68,7 @@ function vk_blocks_render_core_list( $block_content, $block ) { array( 'selector' => ".{$unique_classname} li::marker,.{$unique_classname} li::before", 'declarations' => array( - 'color' => vk_blocks_get_color_code( $block['attrs']['color'] ), + 'color' => vk_blocks_get_color_code( $block['attrs']['color'] ) . ' !important', ), ), );