Skip to content

Commit

Permalink
fix(CounterLabel): reduce specificity of nested selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack authored Oct 11, 2024
1 parent 799ead8 commit 729bc35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react/src/CounterLabel/CounterLabel.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
/* stylelint-disable-next-line primer/borders */
border-radius: 20px;

&[data-scheme='primary'] {
&:where([data-scheme='primary']) {
color: var(--fgColor-onEmphasis);
background-color: var(--bgColor-neutral-emphasis);
}

&[data-scheme='secondary'] {
&:where([data-scheme='secondary']) {
color: var(--fgColor-default);
background-color: var(--bgColor-neutral-muted);
}

&:empty {
&:where(:empty) {
display: none;
}
}

0 comments on commit 729bc35

Please sign in to comment.