Skip to content

Commit

Permalink
Revert “Prevent Preflight from affecting list semantics” (#13907)
Browse files Browse the repository at this point in the history
Due to difference in how it handles an empty `<li>`: https://codepen.io/benface/pen/MWdRdyY
  • Loading branch information
benface authored Jul 4, 2024
1 parent 407de01 commit 3b85780
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ 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))

### Fixed

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: "";
list-style: none;
}
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, without affecting semantics. (https://www.matuzo.at/blog/2023/removing-list-styles-without-affecting-semantics)
Make lists unstyled by default.
*/

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

/*
Expand Down

0 comments on commit 3b85780

Please sign in to comment.