mirror of
https://github.com/danbulant/design
synced 2026-05-19 04:08:46 +00:00
don't use h1 in callouts
This commit is contained in:
parent
4b653cf32e
commit
76d9bd8112
1 changed files with 2 additions and 2 deletions
|
|
@ -23,9 +23,9 @@
|
|||
<!-- A simple callout with header and slot body. Header background colored according to color, and the whole callout has a left border colored as well. -->
|
||||
<div class:minimal class:closed class:closable class="w-full rounded border-l border-l-4 my-6" style:border-left-color={color} style:--shadow-color="{color}0D">
|
||||
<div on:click={toggle} on:keydown={toggle} class="header rounded-tr-lg" style:background-color="{color}40" class:dark-bg={isDark}>
|
||||
<h1>
|
||||
<h4>
|
||||
<slot name="title"/>
|
||||
</h1>
|
||||
</h4>
|
||||
{#if closable}
|
||||
<span class="toggle">{closed ? "Click to view more" : "Click to dismiss"}</span>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Reference in a new issue