Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add base styles for border
  • Loading branch information
stacimc committed Nov 16, 2021
commit f276ccaca5540e699de0c9a084272925b37af10a
7 changes: 7 additions & 0 deletions packages/block-library/src/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,10 @@
width: auto;
z-index: 100000;
}

// The following sets baseline border styles with zero specificity such that
// when a user begins to alter block borders via the block support UI they
// see immediate visual changes.
html :where(.wp-block) {
border: 0 solid currentColor;
}
7 changes: 7 additions & 0 deletions packages/block-library/src/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@
font-size: 42px;
}

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

/**
* Editor Normalization Styles
*
Expand Down