From bda9685fc4498ce2839c9d7997f3b37c2be1701a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benoi=CC=82t=20Rouleau?= Date: Thu, 27 Jun 2024 19:12:52 -0400 Subject: [PATCH] =?UTF-8?q?Revert=20=E2=80=9CPrevent=20Preflight=20from=20?= =?UTF-8?q?affecting=20list=20semantics=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Due to difference in how it handles an empty `
  • `: https://codepen.io/benface/pen/MWdRdyY --- CHANGELOG.md | 1 - .../@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap | 2 +- packages/tailwindcss/preflight.css | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 865e232c1cf1..531dedadb377 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap b/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap index 4867181e3a56..90224b3edb15 100644 --- a/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap +++ b/packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap @@ -553,7 +553,7 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = ` } ol, ul, menu { - list-style: ""; + list-style: none; } textarea { diff --git a/packages/tailwindcss/preflight.css b/packages/tailwindcss/preflight.css index 7aa6bba93d3e..8138927d8654 100644 --- a/packages/tailwindcss/preflight.css +++ b/packages/tailwindcss/preflight.css @@ -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; } /*