Skip to content

Commit 332347e

Browse files
Prevent Preflight from affecting list semantics (#13815)
* Prevent Preflight from affecting list semantics * Use `list-style` property * Update snapshots * Update changelog --------- Co-authored-by: Jordan Pittman <jordan@cryptica.me>
1 parent d9cd199 commit 332347e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Add `rounded-4xl` utility ([#13827](https://github.com/tailwindlabs/tailwindcss/pull/13827))
1313
- Add `backdrop-blur-none` and `blur-none` utilities ([#13831](https://github.com/tailwindlabs/tailwindcss/pull/13831))
1414
- Include variable in output for bare utilities like `rounded` ([#13836](https://github.com/tailwindlabs/tailwindcss/pull/13836))
15+
- Preserve list semantics for `ul`, `li`, and `menu` by default ([#13815](https://github.com/tailwindlabs/tailwindcss/pull/13815))
1516

1617
## [4.0.0-alpha.16] - 2024-06-07
1718

packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
553553
}
554554
555555
ol, ul, menu {
556-
list-style: none;
556+
list-style: "";
557557
}
558558
559559
textarea {

packages/tailwindcss/preflight.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,13 @@ summary {
262262
}
263263

264264
/*
265-
Make lists unstyled by default.
265+
Make lists unstyled by default, without affecting semantics. (https://www.matuzo.at/blog/2023/removing-list-styles-without-affecting-semantics)
266266
*/
267267

268268
ol,
269269
ul,
270270
menu {
271-
list-style: none;
271+
list-style: '';
272272
}
273273

274274
/*

0 commit comments

Comments
 (0)