Skip to content

Conversation

@mattnolting
Copy link
Collaborator

closes #4276

@patternfly-build
Copy link
Collaborator

patternfly-build commented Oct 7, 2021

Preview: https://patternfly-pr-4424.surge.sh

@mcoker mcoker requested a review from jessiehuff October 12, 2021 20:36
@@ -1,4 +1,8 @@
<section class="pf-c-form__section{{#if form-section--modifier}} {{form-section--modifier}}{{/if}}"
{{#unless form-section--HasNoTitle}}
Copy link
Contributor

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}}
Copy link
Contributor

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]"

Copy link
Contributor

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.

Copy link
Contributor

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!

@mattnolting mattnolting force-pushed the feat-forms-issue-4276 branch from a45da44 to ab6022a Compare October 15, 2021 14:48
@mattnolting mattnolting requested a review from mcoker October 15, 2021 15:08
Copy link
Contributor

@jessiehuff jessiehuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L🎃TM!

@mcoker mcoker merged commit 98bd69d into patternfly:main Oct 18, 2021
@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 4.146.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update form sections to use role="group"

4 participants