mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-29 06:32:52 +00:00
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:
parent
9ffc4cc360
commit
b3606703af
2 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -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'}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue