+
+
${activeEvents.length > 0 && (() => {
const renderSlide = (idx, isOutgoing) => {
const ev = activeEvents[idx] || activeEvents[0];
@@ -406,6 +407,9 @@ export function UTCIForecast() {
return html`
dismissBanner(ev.id)}
+ role=${isOutgoing ? undefined : 'button'}
+ title=${isOutgoing ? undefined : 'Click to dismiss'}
>
${ev.emoji}
@@ -422,7 +426,7 @@ export function UTCIForecast() {
bannerSlideTo(i)}
+ onClick=${(e) => { e.stopPropagation(); bannerSlideTo(i); }}
style=${{ background: ev.textColor }}
/>
`)}
@@ -432,7 +436,7 @@ export function UTCIForecast() {
${!isOutgoing && html``}
@@ -448,6 +452,7 @@ export function UTCIForecast() {
})()}
+