Skip to content

Commit

Permalink
Add baseline border styles for cover block
Browse files Browse the repository at this point in the history
These new styles have zero specificity and are easily overridden by theme or global styles. They however ensure there is some value set such that a user is more likely to be given immediate visual feedback when editing individual border properties.
  • Loading branch information
aaronrobertshaw committed Apr 29, 2022
1 parent 126b31e commit 858ca1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -282,3 +282,10 @@ section.wp-block-cover-image > h2,
padding: 0.44em;
text-align: center;
}

// The following sets baseline border styles with zero specificity such that
// when a user begins to alter cover block borders via the block support UI they
// see immediately visual changes.
html :where(.wp-block-cover) {
border: 0 solid currentColor;
}

0 comments on commit 858ca1b

Please sign in to comment.