fix(a11y): the Create knowledge base, Create Prompt and Clone Prompt dialogs have names (#33119)

This commit is contained in:
G30 2026-10-24 23:15:29 -04:00 • committed by GitHub
parent 3cd25f7717
commit 331b38f875
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -321,7 +321,7 @@
}}
/>
<Modal bind:show={showCreateModal} size="md">
<Modal bind:show={showCreateModal} size="md" ariaLabel={$i18n.t('Create a knowledge base')}>
<CreateKnowledgeBase
modal={true}
onBack={() => {

View file

@ -409,6 +409,7 @@
<Modal
bind:show={showCreateModal}
size="full"
ariaLabel={createPrompt !== null ? $i18n.t('Clone Prompt') : $i18n.t('Create Prompt')}
className="!w-[calc(100vw-2rem)] sm:!w-[calc(100vw-3rem)] lg:!w-[calc(100vw-4rem)] !max-w-[80rem] h-[min(54rem,calc(100dvh-4rem))] max-h-[calc(100dvh-4rem)] flex flex-col bg-white dark:bg-gray-900 rounded-4xl"
>
{#key createPrompt}