-
-
Notifications
You must be signed in to change notification settings - Fork 894
Text field alerts a11y #8033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Text field alerts a11y #8033
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Accessibility issues in form fields fixed. Announce errors via aria-live and expose required/invalid state on text inputs @Wagner3UB | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,10 @@ exports[`IdWidget > renders an empty id widget component 1`] = ` | |
| value="" | ||
| /> | ||
| </div> | ||
| <div | ||
| aria-atomic="true" | ||
| aria-live="polite" | ||
| /> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
@@ -83,6 +87,10 @@ exports[`IdWidget > renders an id widget with a valid dot character 1`] = ` | |
| value="test-id" | ||
| /> | ||
| </div> | ||
| <div | ||
| aria-atomic="true" | ||
| aria-live="polite" | ||
| /> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
@@ -128,6 +136,10 @@ exports[`IdWidget > renders an id widget with a valid value 1`] = ` | |
| value="test-id" | ||
| /> | ||
| </div> | ||
| <div | ||
| aria-atomic="true" | ||
| aria-live="polite" | ||
| /> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
@@ -174,9 +186,14 @@ exports[`IdWidget > renders an id widget with an reserved name 1`] = ` | |
| /> | ||
| </div> | ||
| <div | ||
| class="ui red basic label form-error-label" | ||
| aria-atomic="true" | ||
| aria-live="polite" | ||
| > | ||
| This is a reserved name and can't be used | ||
| <div | ||
| class="ui red basic label form-error-label" | ||
| > | ||
| This is a reserved name and can't be used | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
@@ -224,9 +241,14 @@ exports[`IdWidget > renders an id widget with invalid characters 1`] = ` | |
| /> | ||
| </div> | ||
| <div | ||
| class="ui red basic label form-error-label" | ||
| aria-atomic="true" | ||
| aria-live="polite" | ||
| > | ||
| Only 7-bit bytes characters are allowed. Cannot contain uppercase letters, special characters: <, >, &, #, /, ?, or others that are illegal in URLs. Cannot start with: _, aq_, @@, ++. Cannot end with __. Cannot be: request,contributors, ., .., "". Cannot contain new lines. | ||
| <div | ||
| class="ui red basic label form-error-label" | ||
| > | ||
| Only 7-bit bytes characters are allowed. Cannot contain uppercase letters, special characters: <, >, &, #, /, ?, or others that are illegal in URLs. Cannot start with: _, aq_, @@, ++. Cannot end with __. Cannot be: request,contributors, ., .., "". Cannot contain new lines. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just noticed this. Does the ampersand render to the screen, or does it need to be encoded?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This good question got me curious and I checked, since this is a snapshot test result and should (theoretically) represent the result of rendering. https://github.com/plone/volto/blob/main/packages/volto/src/components/manage/Widgets/IdWidget.jsx#L30 |
||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.