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 2026-10-25 01:22:34 -04:00 • committed by GitHub
parent 5f95008abd
commit e3b34d7bf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)}
>