impr: improve select menu semantics

This commit is contained in:
James Xylight committed 2025-08-29 16:09:22 -07:00
1 parent f105240559
commit ebf53faa10
13 files changed
+170 -187

No files matched your search

+3 -9
View File
@@ -10,23 +10,21 @@
<script lang="ts">
import { page } from '$app/state'
import { t } from '$lib/i18n/translations'
import { Button, Material, toast } from 'mono-svelte'
import { focusTrap } from 'svelte-focus-trap'
import { Icon, Share, XMark } from 'svelte-hero-icons'
import { expoOut } from 'svelte/easing'
import { fade, scale } from 'svelte/transition'
import { focusTrap } from 'svelte-focus-trap'
import { t } from '$lib/i18n/translations'
interface Props {
/**
* The full-resolution image URL
*/
alt?: string
class?: string
children?: import('svelte').Snippet
}
let { alt = '', class: clazz = '', children }: Props = $props()
let { alt = '' }: Props = $props()
</script>
{#if page.state.openImage || '' != ''}
@@ -88,7 +86,3 @@
</div>
</div>
{/if}
<button onclick={() => history.back()} class="contents {clazz}">
{@render children?.()}
</button>