Skip to content

Commit

Permalink
Regenerating Cover Block fixture for the gradient deprecation because…
Browse files Browse the repository at this point in the history
… the attribute `"isDark":false` should have a corresponding `is-light` classname on the container. (#38728)
  • Loading branch information
ramonjd committed Feb 11, 2022
1 parent 9e57e8f commit 95d4b92
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!-- wp:cover {"gradient":"luminous-dusk","isDark":false} -->
<div class="wp-block-cover">
<span aria-hidden="true" class="has-background-dim-100 wp-block-cover__gradient-background has-luminous-dusk-gradient-background has-background-dim has-background-gradient has-luminous-dusk-gradient-background"></span>
<div class="wp-block-cover__inner-container">
<!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} -->
<p class="has-text-align-center has-large-font-size">Cover!</p>
<!-- /wp:paragraph -->
</div>
<!-- wp:cover {"gradient":"electric-grass","isDark":false} -->
<div class="wp-block-cover is-light">
<span aria-hidden="true" class="has-background-dim-100 wp-block-cover__gradient-background has-electric-grass-gradient-background has-background-dim has-background-gradient has-electric-grass-gradient-background"></span>
<div class="wp-block-cover__inner-container">
<!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} -->
<p class="has-text-align-center has-large-font-size">Cover!</p>
<!-- /wp:paragraph -->
</div>
</div>
<!-- /wp:cover -->
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[
{
"name": "core/cover",
"isValid": false,
"isValid": true,
"attributes": {
"alt": "",
"hasParallax": false,
"isRepeated": false,
"dimRatio": 100,
"backgroundType": "image",
"gradient": "luminous-dusk",
"gradient": "electric-grass",
"isDark": false
},
"innerBlocks": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"blockName": "core/cover",
"attrs": {
"gradient": "luminous-dusk",
"gradient": "electric-grass",
"isDark": false
},
"innerBlocks": [
Expand All @@ -14,17 +14,17 @@
"fontSize": "large"
},
"innerBlocks": [],
"innerHTML": "\n\t\t<p class=\"has-text-align-center has-large-font-size\">Cover!</p>\n\t\t",
"innerHTML": "\n <p class=\"has-text-align-center has-large-font-size\">Cover!</p>\n ",
"innerContent": [
"\n\t\t<p class=\"has-text-align-center has-large-font-size\">Cover!</p>\n\t\t"
"\n <p class=\"has-text-align-center has-large-font-size\">Cover!</p>\n "
]
}
],
"innerHTML": "\n<div class=\"wp-block-cover\">\n <span aria-hidden=\"true\" class=\"has-background-dim-100 wp-block-cover__gradient-background has-luminous-dusk-gradient-background has-background-dim has-background-gradient has-luminous-dusk-gradient-background\"></span>\n\t<div class=\"wp-block-cover__inner-container\">\n\t\t\n\t</div>\n</div>\n",
"innerHTML": "\n<div class=\"wp-block-cover is-light\">\n <span aria-hidden=\"true\" class=\"has-background-dim-100 wp-block-cover__gradient-background has-electric-grass-gradient-background has-background-dim has-background-gradient has-electric-grass-gradient-background\"></span>\n <div class=\"wp-block-cover__inner-container\">\n \n </div>\n</div>\n",
"innerContent": [
"\n<div class=\"wp-block-cover\">\n <span aria-hidden=\"true\" class=\"has-background-dim-100 wp-block-cover__gradient-background has-luminous-dusk-gradient-background has-background-dim has-background-gradient has-luminous-dusk-gradient-background\"></span>\n\t<div class=\"wp-block-cover__inner-container\">\n\t\t",
"\n<div class=\"wp-block-cover is-light\">\n <span aria-hidden=\"true\" class=\"has-background-dim-100 wp-block-cover__gradient-background has-electric-grass-gradient-background has-background-dim has-background-gradient has-electric-grass-gradient-background\"></span>\n <div class=\"wp-block-cover__inner-container\">\n ",
null,
"\n\t</div>\n</div>\n"
"\n </div>\n</div>\n"
]
}
]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- wp:cover {"gradient":"luminous-dusk","isDark":false} -->
<div class="wp-block-cover is-light"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-100 has-background-dim has-background-gradient has-luminous-dusk-gradient-background"></span><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} -->
<!-- wp:cover {"gradient":"electric-grass","isDark":false} -->
<div class="wp-block-cover is-light"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-100 has-background-dim has-background-gradient has-electric-grass-gradient-background"></span><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} -->
<p class="has-text-align-center has-large-font-size">Cover!</p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:cover -->

0 comments on commit 95d4b92

Please sign in to comment.