Skip to content

Commit

Permalink
Add important to dynamically generated list styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdkei authored and mtdkei committed Aug 26, 2024
1 parent d718b97 commit e9e3ae1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/vk-blocks/extensions/core/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
),
),
);
Expand All @@ -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',
),
),
);
Expand All @@ -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',
),
),
);
Expand Down

0 comments on commit e9e3ae1

Please sign in to comment.