Skip to content

Commit

Permalink
Set font on body and on html (#2643)
Browse files Browse the repository at this point in the history
modern-normalize sets it on `body` so we need to defeat that.
  • Loading branch information
adamwathan committed Oct 21, 2020
1 parent 5805303 commit 6ad5a19
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion __tests__/fixtures/tailwind-output-flagged.css
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ ul {
* to override it to ensure consistency even when using the default theme.
*/

html {
html, body {
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 1 */
line-height: 1.5; /* 2 */
}
Expand Down
2 changes: 1 addition & 1 deletion __tests__/fixtures/tailwind-output-important.css
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ ul {
* to override it to ensure consistency even when using the default theme.
*/

html {
html, body {
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 1 */
line-height: 1.5; /* 2 */
}
Expand Down
2 changes: 1 addition & 1 deletion __tests__/fixtures/tailwind-output-no-color-opacity.css
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ ul {
* to override it to ensure consistency even when using the default theme.
*/

html {
html, body {
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 1 */
line-height: 1.5; /* 2 */
}
Expand Down
2 changes: 1 addition & 1 deletion __tests__/fixtures/tailwind-output.css
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ ul {
* to override it to ensure consistency even when using the default theme.
*/

html {
html, body {
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 1 */
line-height: 1.5; /* 2 */
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/css/preflight.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ ul {
* to override it to ensure consistency even when using the default theme.
*/

html {
html, body {
font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"); /* 1 */
line-height: 1.5; /* 2 */
}
Expand Down

0 comments on commit 6ad5a19

Please sign in to comment.