From d2a7e8df8975fe4671b1ed45ef7c7b6e7f63f307 Mon Sep 17 00:00:00 2001 From: Kirk Lin Date: Thu, 19 Jan 2023 15:12:53 +0800 Subject: [PATCH] feat: honor the hidden attribute on elements in tailwind preflight https://github.com/tailwindlabs/tailwindcss/pull/9174 --- packages/reset/tailwind.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/reset/tailwind.css b/packages/reset/tailwind.css index 5984621bbd..8541835297 100644 --- a/packages/reset/tailwind.css +++ b/packages/reset/tailwind.css @@ -353,3 +353,9 @@ video { max-width: 100%; height: auto; } + +/* Make elements with the HTML hidden attribute stay hidden by default */ +[hidden] { + display: none; +} +