Skip to content

Commit

Permalink
Prevent Preflight from affecting list semantics (#13815)
Browse files Browse the repository at this point in the history
* Prevent Preflight from affecting list semantics

* Use `list-style` property

* Update snapshots

* Update changelog

---------

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
  • Loading branch information
benface and thecrypticace committed Jun 14, 2024
1 parent d9cd199 commit 332347e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `rounded-4xl` utility ([#13827](https://github.com/tailwindlabs/tailwindcss/pull/13827))
- Add `backdrop-blur-none` and `blur-none` utilities ([#13831](https://github.com/tailwindlabs/tailwindcss/pull/13831))
- Include variable in output for bare utilities like `rounded` ([#13836](https://github.com/tailwindlabs/tailwindcss/pull/13836))
- Preserve list semantics for `ul`, `li`, and `menu` by default ([#13815](https://github.com/tailwindlabs/tailwindcss/pull/13815))

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
}
ol, ul, menu {
list-style: none;
list-style: "";
}
textarea {
Expand Down
4 changes: 2 additions & 2 deletions packages/tailwindcss/preflight.css
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,13 @@ summary {
}

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

ol,
ul,
menu {
list-style: none;
list-style: '';
}

/*
Expand Down

0 comments on commit 332347e

Please sign in to comment.