Skip to content

Commit

Permalink
Fix enforcement of no borders or background for dots separator
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed May 28, 2024
1 parent 01c33e3 commit df10d13
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions packages/block-library/src/separator/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@

// Dots block style variation
:root :where(.wp-block-separator.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 intended for normal HR
background: none !important;
// Important required to ensure dots does not get a border.
border: none !important;
text-align: center;
line-height: 1;
height: auto;
Expand All @@ -29,3 +24,14 @@
font-family: serif;
}
}

// The following overrides should be enforced regardless of global styles.
// The dots block style uses a pseudo element to render the dots. Background
// color and borders would break this aesthetic.
.wp-block-separator.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 intended for normal HR
background: none !important;
// Important required to ensure dots does not get a border.
border: none !important;
}

0 comments on commit df10d13

Please sign in to comment.