Skip to content

Commit 3ca513c

Browse files
authored
fix: Add :where selector to classes that land on nodes that have a sx prop (#4870)
* Add :where selector to classes that land on nodes that have a sx prop * Create blue-stingrays-decide.md
1 parent 587603b commit 3ca513c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
Add `:where()` selector to classes that land on nodes that have a `sx` prop.

packages/react/src/Heading/Heading.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.Heading {
1+
:where(.Heading) {
22
margin: 0;
33
font-size: var(--text-title-size-large);
44
font-weight: var(--base-text-weight-semibold);

packages/react/src/Link/Link.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.Link {
1+
:where(.Link) {
22
color: var(--fgColor-accent);
33
text-decoration: none;
44

0 commit comments

Comments
 (0)