Give Brīdinājumi chips a hover-expanding severity capsule

This commit is contained in:
b0txec
2026-08-22 21:36:31 +03:00
parent 94dffd6c59
commit 70fd24cf83
2 changed files with 16 additions and 10 deletions
+2 -2
View File
@@ -129,8 +129,8 @@ export function Warnings() {
<Show when={filteredWarnings().length > 0}><div class="warningSummary"><For each={filteredWarnings()}>{warning =>
<button type="button" class={`warningCard ${warningSeverity(warning.intensity)}`} classList={{ active: warning.id === selectedId() }} aria-pressed={warning.id === selectedId()} onClick={() => openWarning(warning.id)}>
<PhenomenonIcon phenomenon={warning.phenomenon}/>
<strong>{warning.phenomenon || 'Brīdinājums'}</strong>
<span class="warningCardIcon"><PhenomenonIcon phenomenon={warning.phenomenon}/></span>
<span class="warningCardText">{warning.phenomenon || 'Brīdinājums'}</span>
</button>
}</For></div></Show>