Skip to content

Commit 0fb30b2

Browse files
committed
fix: add aria-live to CollectionCreate error spans
1 parent ff60c34 commit 0fb30b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client/modules/User/components/CollectionCreate.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const CollectionCreate = () => {
3737
<div className="sketches-table-container">
3838
<form className="form" onSubmit={handleCreateCollection}>
3939
{creationError && (
40-
<span className="form-error">
40+
<span className="form-error" aria-live="assertive">
4141
{t('CollectionCreate.FormError')}
4242
</span>
4343
)}
@@ -55,7 +55,7 @@ const CollectionCreate = () => {
5555
onChange={(e) => setName(e.target.value)}
5656
/>
5757
{invalid && (
58-
<span className="form-error">
58+
<span className="form-error" aria-live="polite">
5959
{t('CollectionCreate.NameRequired')}
6060
</span>
6161
)}

0 commit comments

Comments
 (0)