fix(a11y): Calendar's previous and next month buttons are 24 pixels square when Accessibility Mode is on (#33147)

This commit is contained in:
G30 authored and GitHub committed 2026-10-25 00:22:34 -05:00
1 parent 5f95008abd
commit e3b34d7bf9
1 file changed
+6 -2
@@ -110,7 +110,9 @@
<div class="text-[0.6875rem] font-normal">{miniMonthNames[miniMonth]} {miniYear}</div>
<div class="flex items-center gap-0.5">
<button
class="p-0.5 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition"
class="{($settings?.highContrastMode ?? false)
? 'p-1.5'
: 'p-0.5'} rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition"
aria-label={$i18n.t('Previous month')}
on:click={() => navigateMini(-1)}
>
@@ -129,7 +131,9 @@
>
</button>
<button
class="p-0.5 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition"
class="{($settings?.highContrastMode ?? false)
? 'p-1.5'
: 'p-0.5'} rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition"
aria-label={$i18n.t('Next month')}
on:click={() => navigateMini(1)}
>