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
Prev Previous commit
Next Next commit
Remove unneeded separator style
  • Loading branch information
aaronrobertshaw committed May 13, 2024
commit d34c4b038a623f395badfc8f058af0aa7e557f9f
7 changes: 0 additions & 7 deletions packages/block-library/src/separator/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,4 @@
// Prevent margin collapsing so the area to select the separator is bigger.
padding-top: 0.1px;
padding-bottom: 0.1px;

// This is also set in style.scss, but needs a higher specificity in editor
// due to the way that color block supports adds additional background color styles.
&.wp-block-separator.is-style-dots {
Copy link
Contributor

@MaggieCabrera MaggieCabrera May 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is already in the frontend css so this is just clean up 👍

background: none !important;
border: none;
}
}
2 changes: 2 additions & 0 deletions packages/block-library/src/separator/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.wp-block-separator {
// Dots style
// This block style selector can't have zero specificity, that global
// styles uses for block styles, in order to maintain the dots appearance.
&.is-style-dots {
// Override any background themes often set on the hr tag for this style.
// also override the color set in the editor since it's intented for normal HR
Expand Down