Skip to content

Commit 6ff31c8

Browse files
committed
Use attribute selector instead of class to avoid prefixing the wrong class
1 parent 4be652d commit 6ff31c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/styles.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
{
1515
color: defaultTheme.colors.gray[700],
1616
maxWidth: '65ch',
17-
'.lead': {
17+
'[class~="lead"]': {
1818
color: defaultTheme.colors.gray[700],
1919
},
2020
a: {
@@ -150,7 +150,7 @@ module.exports = {
150150
marginTop: em(20, 16),
151151
marginBottom: em(20, 16),
152152
},
153-
'.lead': {
153+
'[class~="lead"]': {
154154
fontSize: em(20, 16),
155155
lineHeight: round(32 / 20),
156156
marginTop: em(24, 20),
@@ -335,7 +335,7 @@ module.exports = {
335335
marginTop: em(16, 14),
336336
marginBottom: em(16, 14),
337337
},
338-
'.lead': {
338+
'[class~="lead"]': {
339339
fontSize: em(18, 14),
340340
lineHeight: round(28 / 18),
341341
marginTop: em(16, 18),
@@ -520,7 +520,7 @@ module.exports = {
520520
marginTop: em(24, 18),
521521
marginBottom: em(24, 18),
522522
},
523-
'.lead': {
523+
'[class~="lead"]': {
524524
fontSize: em(22, 18),
525525
lineHeight: round(32 / 22),
526526
marginTop: em(24, 22),
@@ -705,7 +705,7 @@ module.exports = {
705705
marginTop: em(24, 20),
706706
marginBottom: em(24, 20),
707707
},
708-
'.lead': {
708+
'[class~="lead"]': {
709709
fontSize: em(24, 20),
710710
lineHeight: round(36 / 24),
711711
marginTop: em(24, 24),
@@ -890,7 +890,7 @@ module.exports = {
890890
marginTop: em(32, 24),
891891
marginBottom: em(32, 24),
892892
},
893-
'.lead': {
893+
'[class~="lead"]': {
894894
fontSize: em(30, 24),
895895
lineHeight: round(44 / 30),
896896
marginTop: em(32, 30),

0 commit comments

Comments
 (0)