Compare commits

..

4 Commits

Author SHA1 Message Date
Ilia Mashkov 3e11821814 feat: add meta description 2026-04-19 19:15:46 +03:00
Ilia Mashkov ee3f773ca5 chore: replace section with main tag 2026-04-19 19:15:03 +03:00
Ilia Mashkov 2a51f031cc chore: add missing aria labels 2026-04-19 19:14:49 +03:00
Ilia Mashkov b792dde7cb fix(FontList): overwrite css rule 2026-04-19 19:14:15 +03:00
7 changed files with 11 additions and 4 deletions
+4
View File
@@ -73,6 +73,10 @@ onDestroy(() => themeManager.destroy());
/> />
</noscript> </noscript>
<title>GlyphDiff | Typography & Typefaces</title> <title>GlyphDiff | Typography & Typefaces</title>
<meta
name="description"
content="Compare typefaces side by side. Adjust size, weight, leading, and tracking to find the perfect typographic pairing."
/>
</svelte:head> </svelte:head>
<ResponsiveProvider> <ResponsiveProvider>
+2 -2
View File
@@ -12,7 +12,7 @@ import { fade } from 'svelte/transition';
class="h-full flex flex-col gap-3 sm:gap-4" class="h-full flex flex-col gap-3 sm:gap-4"
in:fade={{ duration: 500, delay: 150, easing: cubicIn }} in:fade={{ duration: 500, delay: 150, easing: cubicIn }}
> >
<section class="w-auto"> <main class="w-auto">
<ComparisonView /> <ComparisonView />
</section> </main>
</div> </div>
@@ -128,7 +128,7 @@ const displayLabel = $derived(label ?? controlLabel ?? '');
? 'bg-paper dark:bg-dark-card shadow-sm border-subtle' ? 'bg-paper dark:bg-dark-card shadow-sm border-subtle'
: 'hover:bg-paper/50 dark:hover:bg-dark-card/50', : 'hover:bg-paper/50 dark:hover:bg-dark-card/50',
)} )}
aria-label={controlLabel} aria-label={controlLabel ? `${controlLabel}: ${formattedValue()}` : undefined}
> >
<!-- Label row --> <!-- Label row -->
{#if displayLabel} {#if displayLabel}
@@ -91,7 +91,7 @@ $effect(() => {
variant="tertiary" variant="tertiary"
{active} {active}
onclick={() => handleSelect(font, index)} onclick={() => handleSelect(font, index)}
class="w-full px-3 md:px-4 py-2.5 md:py-3 justify-between text-left text-sm flex" class="w-full px-3 md:px-4 py-2.5 md:py-3 flex !justify-between text-left text-sm"
iconPosition="right" iconPosition="right"
> >
<FontApplicator {font}>{font.name}</FontApplicator> <FontApplicator {font}>{font.name}</FontApplicator>
@@ -86,6 +86,7 @@ const fontBName = $derived(comparisonStore.fontB?.name ?? '');
variant="underline" variant="underline"
size="lg" size="lg"
placeholder="The quick brown fox..." placeholder="The quick brown fox..."
aria-label="Preview text"
fullWidth fullWidth
/> />
</div> </div>
@@ -13,6 +13,7 @@ import { SearchBar } from '$shared/ui';
id="font-search" id="font-search"
class="w-full" class="w-full"
placeholder="Typeface Search" placeholder="Typeface Search"
aria-label="Search typefaces"
bind:value={filterManager.queryValue} bind:value={filterManager.queryValue}
fullWidth fullWidth
/> />
@@ -65,6 +65,7 @@ function toggleFilters() {
id="font-search" id="font-search"
class="w-full" class="w-full"
placeholder="Typeface Search" placeholder="Typeface Search"
aria-label="Search typefaces"
bind:value={filterManager.queryValue} bind:value={filterManager.queryValue}
fullWidth fullWidth
/> />