web/SmallDialog: focus title first when it's visible

This commit is contained in:
wukko 2024-07-21 13:49:22 +06:00
parent 80300bf766
commit f07aac301c
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -57,7 +57,7 @@
</div> </div>
{/if} {/if}
{#if title} {#if title}
<h2>{title}</h2> <h2 id="popup-title" tabindex="-1">{title}</h2>
{/if} {/if}
</div> </div>
{/if} {/if}
@ -189,7 +189,8 @@
-webkit-user-select: text; -webkit-user-select: text;
} }
.body-text:focus-visible { .body-text:focus-visible,
h2:focus-visible {
box-shadow: none !important; box-shadow: none !important;
} }