-
Notifications
You must be signed in to change notification settings - Fork 1k
Form/AggregateValidation label violation fixed #6469
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
Form/AggregateValidation label violation fixed #6469
Conversation
Signed-off-by: jashanshah33 <jashanshah33@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question as #6464 (comment). It seems like if we provide a label to FormField and don't have an aria-label or a11yTitle that should be used as the aria-label. This would take care of the accessibility issue and we wouldn't need to change anything about this story
Hi @jcfilben , |
If the form has a label and neither aria-label or a11yTitle are defined, the aria-label should be the form label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update on this, I chatted with some other members of the team and we decided to hold off on using the label from FormField as the aria-label. We opened a separate issue to explore this #6483.
Co-authored-by: Jessica Filben <54560994+jcfilben@users.noreply.github.com>
Co-authored-by: Jessica Filben <54560994+jcfilben@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
What does this PR do?
Fixed label issues in storybook for AggregateValidation
Where should the reviewer start?
storybook
What testing has been done on this PR?
local
How should this be manually tested?
storybook
Do Jest tests follow these best practices?
none
Any background context you want to provide?
no
What are the relevant issues?
#6124
Screenshots (if appropriate)

Before:
After:

Do the grommet docs need to be updated?
no
Should this PR be mentioned in the release notes?
no
Is this change backwards compatible or is it a breaking change?
backwards compatible