-
Notifications
You must be signed in to change notification settings - Fork 106
feat(form): added group role to section and field group #4424
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
Conversation
|
Preview: https://patternfly-pr-4424.surge.sh |
| @@ -1,4 +1,8 @@ | |||
| <section class="pf-c-form__section{{#if form-section--modifier}} {{form-section--modifier}}{{/if}}" | |||
| {{#unless form-section--HasNoTitle}} | |||
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.
This should always have role="group", no? And either aria-label if form-section--HasNoTitle, otherwise aria-labelledby="[title id]"
| @@ -1,4 +1,8 @@ | |||
| <div class="pf-c-form__field-group{{#if form-field-group--IsExpanded}} pf-m-expanded{{/if}}{{#if form-field-group--modifier}} {{form-field-group--modifier}}{{/if}}" | |||
| {{#unless form-field-group--HasNoTitle}} | |||
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.
This should always have role="group", no? And either aria-label if form-field-group--HasNoTitle, otherwise aria-labelledby="[title id]"
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.
I agree that it should probably always have the role. I can see the benefit of your second comment, though Jenn's comment here argues that maybe there shouldn't be an aria-label if there's no title. I could argue either way. I think it probably depends on the implementation. If there is a visual indication in the UI, the user should probably add an aria-label to also indicate that, but in our example, I can see that maybe an aria-label isn't really necessary.
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.
Oh I missed that, thanks!
a45da44 to
ab6022a
Compare
jessiehuff
left a comment
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.
LGTM!
mcoker
left a comment
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.
L🎃TM!
|
🎉 This PR is included in version 4.146.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
closes #4276