Skip to content

Commit 961eea9

Browse files
authored
Merge pull request #703 from tailwindcss/reset-headings
Reset heading styles in preflight
2 parents 2219dfd + fb451e7 commit 961eea9

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

__tests__/fixtures/tailwind-output-important.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,16 @@ table {
478478
border-collapse: collapse;
479479
}
480480

481+
h1,
482+
h2,
483+
h3,
484+
h4,
485+
h5,
486+
h6 {
487+
font-size: inherit;
488+
font-weight: inherit;
489+
}
490+
481491
.container {
482492
width: 100%;
483493
}

__tests__/fixtures/tailwind-output.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,16 @@ table {
478478
border-collapse: collapse;
479479
}
480480

481+
h1,
482+
h2,
483+
h3,
484+
h4,
485+
h5,
486+
h6 {
487+
font-size: inherit;
488+
font-weight: inherit;
489+
}
490+
481491
.container {
482492
width: 100%;
483493
}

src/plugins/css/preflight.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,13 @@ button,
123123
table {
124124
border-collapse: collapse;
125125
}
126+
127+
h1,
128+
h2,
129+
h3,
130+
h4,
131+
h5,
132+
h6 {
133+
font-size: inherit;
134+
font-weight: inherit;
135+
}

0 commit comments

Comments
 (0)