mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-29 06:32:52 +00:00
fix: the close button on 22 dialogs and the update notice gets a name for screen readers (#32615)
This commit is contained in:
parent
e9470816fa
commit
b6808df7d6
23 changed files with 23 additions and 1 deletions
|
|
@ -20,6 +20,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -168,6 +168,7 @@
|
|||
{/if}
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@
|
|||
{$i18n.t('Manage Models')}
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@
|
|||
{/if}
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center flex-shrink-0"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -199,6 +199,7 @@
|
|||
{/if}
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -118,6 +118,7 @@
|
|||
</div>
|
||||
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => (show = false)}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -4918,6 +4918,7 @@
|
|||
<div class="flex justify-between px-4 pt-3 pb-1 dark:text-gray-300">
|
||||
<div class="self-center text-sm font-medium">{$i18n.t('Chat Variables')}</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
showChatVariablesModal = false;
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@
|
|||
{title ?? $i18n.t('Input Variables')}
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@
|
|||
{$i18n.t('Add Memory')}
|
||||
{/if}
|
||||
</div>
|
||||
<button class="self-center" on:click={() => (show = false)}>
|
||||
<button aria-label={$i18n.t('Close')} class="self-center" on:click={() => (show = false)}>
|
||||
<XMark className={'size-5'} />
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -278,6 +278,7 @@
|
|||
|
||||
<div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
on:click={() => {
|
||||
show = false;
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@
|
|||
<div class=" absolute left-0 w-full flex justify-between select-none z-20">
|
||||
<div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class=" p-5"
|
||||
on:pointerdown={(e) => {
|
||||
e.stopImmediatePropagation();
|
||||
|
|
|
|||
|
|
@ -149,6 +149,7 @@
|
|||
{/if}
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@
|
|||
{$i18n.t('Set your status')}
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
<div class=" shrink-0 pr-1">
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class=" hover:text-blue-900 dark:hover:text-blue-300 transition"
|
||||
on:click={() => {
|
||||
dispatch('close');
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<Modal size="full" containerClassName="" className="h-full bg-white dark:bg-gray-900" bind:show>
|
||||
<div class="absolute top-0 right-0 p-5">
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center dark:text-white"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
{labels.title ?? $i18n.t('Access Control')}
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
<div class=" flex justify-between dark:text-gray-300 px-4 pt-3 pb-1">
|
||||
<div class=" text-sm font-medium self-center">{$i18n.t('Show your support!')}</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
|
|
@ -164,6 +164,7 @@
|
|||
<div class="flex justify-between dark:text-gray-100 px-4 pt-3 pb-1">
|
||||
<div class="self-center text-sm font-medium">{$i18n.t('Valves')}</div>
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="self-center rounded-lg p-1 text-gray-500 transition hover:bg-gray-50 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue