Skip to content

best way to save what you love

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

wukkof07aac301c1d
diff --git a/web/src/components/dialog/SmallDialog.svelte b/web/src/components/dialog/SmallDialog.svelte
index ed575f9e..11d6ba3b 100644
--- a/web/src/components/dialog/SmallDialog.svelte
+++ b/web/src/components/dialog/SmallDialog.svelte
@@ -57,7 +57,7 @@
</div>
{/if}
{#if title}
- <h2>{title}</h2>
+ <h2 id="popup-title" tabindex="-1">{title}</h2>
{/if}
</div>
{/if}
@@ -189,7 +189,8 @@
-webkit-user-select: text;
}
- .body-text:focus-visible {
+ .body-text:focus-visible,
+ h2:focus-visible {
box-shadow: none !important;
}