mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-29 06:32:52 +00:00
fix(a11y): the Visibility button's name includes the choice it shows (#33125)
This commit is contained in:
parent
331b38f875
commit
5372577430
2 changed files with 2 additions and 2 deletions
|
|
@ -503,7 +503,6 @@
|
|||
<Dropdown closeOnSelect>
|
||||
<button
|
||||
type="button"
|
||||
aria-label={labels.title ?? $i18n.t('Visibility')}
|
||||
class="flex h-6 items-center gap-2 rounded-md text-[0.8125rem] font-medium text-gray-800 transition hover:text-gray-950 dark:text-gray-200 dark:hover:text-white"
|
||||
>
|
||||
{#if visibility === 'private'}
|
||||
|
|
@ -511,6 +510,7 @@
|
|||
{:else}
|
||||
<GlobeAlt className="size-3.5 text-gray-500 dark:text-gray-400" />
|
||||
{/if}
|
||||
<span class="sr-only">{labels.title ?? $i18n.t('Visibility')}</span>
|
||||
<span>{visibilityOptions.find((option) => option.value === visibility)?.label}</span>
|
||||
<ChevronDown className="size-3 text-gray-400 dark:text-gray-500" strokeWidth="2" />
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@
|
|||
<Dropdown closeOnSelect>
|
||||
<button
|
||||
type="button"
|
||||
aria-label={$i18n.t('Visibility')}
|
||||
class="flex h-6 items-center gap-2 rounded-md text-[0.8125rem] font-medium text-gray-800 transition hover:text-gray-950 dark:text-gray-200 dark:hover:text-white"
|
||||
>
|
||||
{#if state === 'private'}
|
||||
|
|
@ -30,6 +29,7 @@
|
|||
{:else}
|
||||
<Hashtag className="size-3.5 text-gray-500 dark:text-gray-400" />
|
||||
{/if}
|
||||
<span class="sr-only">{$i18n.t('Visibility')}</span>
|
||||
<span>{state === 'private' ? $i18n.t('Private') : $i18n.t('Public')}</span>
|
||||
<ChevronDown className="size-3 text-gray-400 dark:text-gray-500" strokeWidth="2" />
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue