From 8737e400e5be85f9c14b2e4d163730a6ff65f76b Mon Sep 17 00:00:00 2001 From: Matthew Oliveira Date: Tue, 10 Dec 2024 15:06:56 -0500 Subject: [PATCH] fix(card): make sure [hidden] really means hidden --- packages/styles/scss/components/card/_card.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/styles/scss/components/card/_card.scss b/packages/styles/scss/components/card/_card.scss index c043c4cc921..143836fdf3f 100644 --- a/packages/styles/scss/components/card/_card.scss +++ b/packages/styles/scss/components/card/_card.scss @@ -294,7 +294,10 @@ gap: $spacing-05; &[hidden] { - display: none; + // Need important to force [hidden] to really mean hidden above many + // other variants setting display. + /* stylelint-disable declaration-no-important */ + display: none !important; } } }