Skip to content
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

[a11y]: Form examples need to include instruction #3578

Closed
2 tasks done
thefirstartist opened this issue May 31, 2023 · 0 comments · Fixed by #3722
Closed
2 tasks done

[a11y]: Form examples need to include instruction #3578

thefirstartist opened this issue May 31, 2023 · 0 comments · Fixed by #3722

Comments

@thefirstartist
Copy link

Package

@carbon/react

Browser

Chrome

Operating System

MacOS

Package version

v11

React version

v1.30

Automated testing tool and ruleset

n/a

Assistive technology

No response

Description

in Components > Form > Accessibility page, there's a guideline for indicating required or optional fields under Identify requirements at the start of the form:

"Especially where only optional fields are indicated, an instruction should precede a form, providing the context for whether required or optional fields are indicated. "

However, throughout the entire Carbon site, none of the UI examples that include a form shows the so-called "instruction" on top of the form.

For example, in this form example, the instruction is missing:

image

The guideline also provides a link to IBM Accessibility guidance for "Required fields":

image

If both the carbon and IBM Accessibility guidelines require instructions to be placed on top of the forms, UI examples should include the instructions to avoid confusion.

WCAG 2.1 Violation

3.3.2: Labels or Instructions

Reproduction/example

https://carbondesignsystem.com/components/form/usage#live-demo

Steps to reproduce

Another form example needs to include instruction:
https://carbondesignsystem.com/components/form/usage#live-demo

image

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants