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 Aug 9, 2021
1 parent 8734210 commit d5587cd
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 @@ -253,3 +253,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 d5587cd

Please sign in to comment.