Skip to content

Commit 7ec9dc3

Browse files
authored
Ensure configured font-feature-settings are included in Preflight (#9707)
* Add `font-feature-settings` to `html` in preflight * Update source map test snapshots * Update changelog
1 parent e231ea6 commit 7ec9dc3

File tree

4 files changed

+314
-283
lines changed

4 files changed

+314
-283
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Don't reuse container for array returning variant functions ([#9644](https://github.com/tailwindlabs/tailwindcss/pull/9644))
1414
- Exclude non-relevant selectors when generating rules with the important modifier ([#9677](https://github.com/tailwindlabs/tailwindcss/issues/9677))
1515
- Fix merging of arrays during config resolution ([#9706](https://github.com/tailwindlabs/tailwindcss/issues/9706))
16+
- Ensure configured `font-feature-settings` are included in Preflight ([#9707](https://github.com/tailwindlabs/tailwindcss/pull/9707))
1617

1718
## [3.2.1] - 2022-10-21
1819

src/css/preflight.css

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
2. Prevent adjustments of font size after orientation changes in iOS.
2323
3. Use a more readable tab size.
2424
4. Use the user's configured `sans` font-family by default.
25+
5. Use the user's configured `sans` font-feature-settings by default.
2526
*/
2627

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

3537
/*

0 commit comments

Comments
 (0)