Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion client/modules/IDE/components/NewFileForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ function NewFileForm() {
</Field>
</div>
{touched.submitButton && errors.name && (
<span className="form-error">{errors.name}</span>
<span className="form-error" aria-live="polite">
{errors.name}
</span>
)}
</form>
)}
Expand Down
4 changes: 3 additions & 1 deletion client/modules/IDE/components/NewFolderForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ function NewFolderForm() {
</Field>
</div>
{touched.submitButton && errors.name && (
<span className="form-error">{errors.name}</span>
<span className="form-error" aria-live="polite">
{errors.name}
</span>
)}
</form>
)}
Expand Down
16 changes: 12 additions & 4 deletions client/modules/User/components/AccountForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ export function AccountForm() {
{...field.input}
/>
{field.meta.touched && field.meta.error && (
<span className="form-error">{field.meta.error}</span>
<span className="form-error" aria-live="polite">
{field.meta.error}
</span>
)}
</p>
)}
Expand Down Expand Up @@ -135,7 +137,9 @@ export function AccountForm() {
{...field.input}
/>
{field.meta.touched && field.meta.error && (
<span className="form-error">{field.meta.error}</span>
<span className="form-error" aria-live="polite">
{field.meta.error}
</span>
)}
</p>
)}
Expand All @@ -156,7 +160,9 @@ export function AccountForm() {
{...field.input}
/>
{field.meta.touched && field.meta.error && (
<span className="form-error">{field.meta.error}</span>
<span className="form-error" aria-live="polite">
{field.meta.error}
</span>
)}
</p>
)}
Expand All @@ -178,7 +184,9 @@ export function AccountForm() {
{...field.input}
/>
{field.meta.touched && field.meta.error && (
<span className="form-error">{field.meta.error}</span>
<span className="form-error" aria-live="polite">
{field.meta.error}
</span>
)}
</p>
)}
Expand Down
4 changes: 2 additions & 2 deletions client/modules/User/components/CollectionCreate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const CollectionCreate = () => {
<div className="sketches-table-container">
<form className="form" onSubmit={handleCreateCollection}>
{creationError && (
<span className="form-error">
<span className="form-error" aria-live="assertive">
{t('CollectionCreate.FormError')}
</span>
)}
Expand All @@ -55,7 +55,7 @@ const CollectionCreate = () => {
onChange={(e) => setName(e.target.value)}
/>
{invalid && (
<span className="form-error">
<span className="form-error" aria-live="polite">
{t('CollectionCreate.NameRequired')}
</span>
)}
Expand Down
2 changes: 1 addition & 1 deletion client/modules/User/components/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function LoginForm() {
)}
</Field>
{submitError && !modifiedSinceLastSubmit && (
<span className="form-error">
<span className="form-error" aria-live="assertive">
{t('LoginForm.Errors.invalidCredentials')}
</span>
)}
Expand Down
8 changes: 6 additions & 2 deletions client/modules/User/components/NewPasswordForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export function NewPasswordForm(props: { resetPasswordToken: string }) {
{...field.input}
/>
{field.meta.touched && field.meta.error && (
<span className="form-error">{field.meta.error}</span>
<span className="form-error" aria-live="polite">
{field.meta.error}
</span>
)}
</p>
)}
Expand All @@ -59,7 +61,9 @@ export function NewPasswordForm(props: { resetPasswordToken: string }) {
{...field.input}
/>
{field.meta.touched && field.meta.error && (
<span className="form-error">{field.meta.error}</span>
<span className="form-error" aria-live="polite">
{field.meta.error}
</span>
)}
</p>
)}
Expand Down
4 changes: 3 additions & 1 deletion client/modules/User/components/ResetPasswordForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export function ResetPasswordForm() {
{...field.input}
/>
{field.meta.touched && field.meta.error && (
<span className="form-error">{field.meta.error}</span>
<span className="form-error" aria-live="polite">
{field.meta.error}
</span>
)}
</p>
)}
Expand Down