mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
add aria label to button with no other label
This commit is contained in:
parent
0e95af01ea
commit
53d044f8a2
@ -1,4 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
const i18n = getContext('i18n');
|
||||||
|
import { getContext } from 'svelte';
|
||||||
export let value: string = '';
|
export let value: string = '';
|
||||||
export let placeholder = '';
|
export let placeholder = '';
|
||||||
export let required = true;
|
export let required = true;
|
||||||
@ -24,6 +26,7 @@
|
|||||||
<button
|
<button
|
||||||
class={showButtonClassName}
|
class={showButtonClassName}
|
||||||
type="button"
|
type="button"
|
||||||
|
aria-label={$i18n.t('Make password visible in the user interface')}
|
||||||
on:click={(e) => {
|
on:click={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
show = !show;
|
show = !show;
|
||||||
|
Loading…
Reference in New Issue
Block a user