Skip to content

Commit

Permalink
Fix the test css to match against
Browse files Browse the repository at this point in the history
  • Loading branch information
ingeniumed committed Sep 10, 2024
1 parent 9c316d1 commit 41baa82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-nested-governance-processing.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function test_get_nested_settings_and_css_happy_path() {
],
],
],
'css' => ' .wp-block-media-text .wp-block-heading{--wp--preset--color--custom-red: #ff0000;} .wp-block-media-text .wp-block-heading.has-custom-red-color{color: var(--wp--preset--color--custom-red) !important;} .wp-block-media-text .wp-block-heading.has-custom-red-background-color{background-color: var(--wp--preset--color--custom-red) !important;} .wp-block-media-text .wp-block-heading.has-custom-red-border-color{border-color: var(--wp--preset--color--custom-red) !important;} .wp-block-quote p{--wp--preset--color--custom-green: #00FF00;} .wp-block-quote p.has-custom-green-color{color: var(--wp--preset--color--custom-green) !important;} .wp-block-quote p.has-custom-green-background-color{background-color: var(--wp--preset--color--custom-green) !important;} .wp-block-quote p.has-custom-green-border-color{border-color: var(--wp--preset--color--custom-green) !important;} .wp-block-heading{--wp--preset--color--custom-yellow: #FFFF00;} .wp-block-heading.has-custom-yellow-color{color: var(--wp--preset--color--custom-yellow) !important;} .wp-block-heading.has-custom-yellow-background-color{background-color: var(--wp--preset--color--custom-yellow) !important;} .wp-block-heading.has-custom-yellow-border-color{border-color: var(--wp--preset--color--custom-yellow) !important;}',
'css' => ' .wp-block-media-text .wp-block-heading{--wp--preset--color--custom-red: #ff0000;} .wp-block-media-text .wp-block-heading.has-custom-red-color{color: var(--wp--preset--color--custom-red) !important;} .wp-block-media-text .wp-block-heading.has-custom-red-background-color{background-color: var(--wp--preset--color--custom-red) !important;} .wp-block-media-text .wp-block-heading.has-custom-red-border-color{border-color: var(--wp--preset--color--custom-red) !important;} .wp-block-quote .wp-block{--wp--preset--gradient--vertical-red-to-green: linear-gradient(to bottom,#ff0000 0%,#00FF00 100%);} .wp-block-quote .wp-block.has-vertical-red-to-green-gradient-background{background: var(--wp--preset--gradient--vertical-red-to-green) !important;} .wp-block-heading{--wp--preset--color--custom-yellow: #FFFF00;} .wp-block-heading.has-custom-yellow-color{color: var(--wp--preset--color--custom-yellow) !important;} .wp-block-heading.has-custom-yellow-background-color{background-color: var(--wp--preset--color--custom-yellow) !important;} .wp-block-heading.has-custom-yellow-border-color{border-color: var(--wp--preset--color--custom-yellow) !important;}',
];

$nested_settings_and_css = NestedGovernanceProcessing::get_nested_settings_and_css( $block_settings );
Expand Down

0 comments on commit 41baa82

Please sign in to comment.