From f52ea6026cd6515f493797cc7dd3180c08d51ee0 Mon Sep 17 00:00:00 2001 From: Kirk Lin Date: Thu, 19 Jan 2023 15:45:46 +0800 Subject: [PATCH] feat(reset): honor the hidden attribute on elements in tailwind preflight (#2096) 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; +} +