mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
add aria label to button with no other label
This commit is contained in:
parent
0e95af01ea
commit
53d044f8a2
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue