fix(a11y): the Resize panel handle tells screen readers the panel's width (#33117)

This commit is contained in:
G30 2026-10-24 23:15:57 -04:00 • committed by GitHub
parent 5372577430
commit 30d0206e71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,6 +149,9 @@
tabindex="0"
aria-label={$i18n.t('Resize panel')}
aria-orientation="vertical"
aria-valuenow={width}
aria-valuemin={minWidth}
aria-valuemax={maxWidth ?? undefined}
>
<span
class="absolute -left-1.5 -right-1.5 -top-0 -bottom-0 z-20 cursor-col-resize bg-transparent"
@ -172,6 +175,9 @@
tabindex="0"
aria-label={$i18n.t('Resize panel')}
aria-orientation="vertical"
aria-valuenow={width}
aria-valuemin={minWidth}
aria-valuemax={maxWidth ?? undefined}
>
<span
class="absolute -left-1.5 -right-1.5 -top-0 -bottom-0 z-20 cursor-col-resize bg-transparent"