Skip to content

Commit

Permalink
Ensure configured font-feature-settings are included in Preflight (#…
Browse files Browse the repository at this point in the history
…9707)

* Add `font-feature-settings` to `html` in preflight

* Update source map test snapshots

* Update changelog
  • Loading branch information
bradlc committed Nov 1, 2022
1 parent e231ea6 commit 7ec9dc3
Show file tree
Hide file tree
Showing 4 changed files with 314 additions and 283 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Don't reuse container for array returning variant functions ([#9644](https://github.com/tailwindlabs/tailwindcss/pull/9644))
- Exclude non-relevant selectors when generating rules with the important modifier ([#9677](https://github.com/tailwindlabs/tailwindcss/issues/9677))
- Fix merging of arrays during config resolution ([#9706](https://github.com/tailwindlabs/tailwindcss/issues/9706))
- Ensure configured `font-feature-settings` are included in Preflight ([#9707](https://github.com/tailwindlabs/tailwindcss/pull/9707))

## [3.2.1] - 2022-10-21

Expand Down
2 changes: 2 additions & 0 deletions src/css/preflight.css
Expand Up @@ -22,6 +22,7 @@
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
*/

html {
Expand All @@ -30,6 +31,7 @@ html {
-moz-tab-size: 4; /* 3 */
tab-size: 4; /* 3 */
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"); /* 4 */
font-feature-settings: theme('fontFamily.sans[1].fontFeatureSettings', normal); /* 5 */
}

/*
Expand Down

0 comments on commit 7ec9dc3

Please sign in to comment.