From ff694177ad547d4e55634ea9ebce3f9eb94713cc Mon Sep 17 00:00:00 2001 From: Asrinne Nazari Date: Fri, 22 Nov 2024 11:59:32 +0100 Subject: [PATCH] feat(cosmoz-tab-card): add css rules for heading BREAKING CHANGE: `cosmoz-tab-card` heading must be an attribute --- src/cosmoz-tab-card.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cosmoz-tab-card.js b/src/cosmoz-tab-card.js index 6b44c64..81e3158 100644 --- a/src/cosmoz-tab-card.js +++ b/src/cosmoz-tab-card.js @@ -85,6 +85,14 @@ const style = css` width: var(--cosmoz-tab-card-width, 300px); } + :host([heading]) h1 { + display: block; + } + + h1.heading { + display: none; + } + .collapse { display: flex; flex-direction: column;