fix(a11y): the model editor's Description, Tools, Skills, Filters and Actions rows are named by what they show (#33123)

This commit is contained in:
G30 2026-10-24 23:03:42 -04:00 • committed by GitHub
parent 9ffc4cc360
commit b3606703af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View file

@ -1219,9 +1219,6 @@
class="grid w-full grid-cols-[7rem_minmax(0,1fr)] items-center gap-2 rounded-sm text-start text-xs font-normal text-gray-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 sm:grid-cols-[8rem_minmax(0,1fr)]"
type="button"
aria-pressed={enableDescription ? 'true' : 'false'}
aria-label={enableDescription
? $i18n.t('Custom description enabled')
: $i18n.t('Default description enabled')}
on:click={() => {
enableDescription = !enableDescription;
}}

View file

@ -120,7 +120,7 @@
type="button"
{disabled}
aria-expanded={show}
aria-label={label || triggerLabel || placeholder}
aria-label={label ? undefined : triggerLabel || placeholder}
class={label
? 'grid w-full grid-cols-[7rem_minmax(0,1fr)_auto] items-center gap-2 rounded-md px-1 py-1.5 text-left text-xs font-normal disabled:cursor-default sm:grid-cols-[8rem_minmax(0,1fr)_auto]'
: 'flex min-w-0 items-center bg-transparent text-xs text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300'}