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

element is empty violation in FormGroup when not using legend #8614

Closed
jerhard2 opened this issue May 7, 2021 · 2 comments
Closed

element is empty violation in FormGroup when not using legend #8614

jerhard2 opened this issue May 7, 2021 · 2 comments

Comments

@jerhard2
Copy link

jerhard2 commented May 7, 2021

I am implementing FormGroup without legend legendText="".

The accessibility violation is Rule: 1.3.1 Info and Relationships element <legend> is empty.

Could legend be conditionally rendered similar to #7904?

Environment

Operating system

Browser

Automated testing tool and ruleset

Assistive technology used to verify

Detailed description

What version of the Carbon Design System are you using?

What did you expect to happen?

What happened instead?

What WCAG 2.1 checkpoint does the issue violate?

Steps to reproduce the issue

  1. Step one
  2. Step two
  3. Step three
  4. etc.

Please create a reduced test case in CodeSandbox

Additional information

  • Screenshots or code
  • Notes
@tw15egan
Copy link
Member

tw15egan commented May 7, 2021

@jerhard2 do you have a CodeSandbox you could share to demonstrate what you are trying to achieve?

@joshblack
Copy link
Contributor

Going to close out this due to inactivity. Feel free to comment with steps to reproduce and we'd be happy to help out!

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

No branches or pull requests

3 participants