-
Notifications
You must be signed in to change notification settings - Fork 371
fix(ExpandableSection): allow toggles proper dom structured headings #12037
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
base: main
Are you sure you want to change the base?
fix(ExpandableSection): allow toggles proper dom structured headings #12037
Conversation
5dab829
to
5da3aac
Compare
Preview: https://pf-react-pr-12037.surge.sh A11y report: https://pf-react-pr-12037-a11y.surge.sh |
…eadings Signed-off-by: gitdallas <[email protected]>
5da3aac
to
0e86f69
Compare
packages/react-core/src/components/ExpandableSection/__tests__/ExpandableSection.test.tsx
Show resolved
Hide resolved
packages/react-core/src/components/ExpandableSection/__tests__/ExpandableSection.test.tsx
Show resolved
Hide resolved
Signed-off-by: gitdallas <[email protected]>
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 to me!
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.
Just some tweaks for the headings used int he new example. Basically we should want the structure to be:
- An h3 for the example title
- An h4 for the titles used above each expandable section
- An h5 for the actual toggles in the new example
packages/react-core/src/components/ExpandableSection/examples/ExpandableSectionWithHeading.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/components/ExpandableSection/examples/ExpandableSectionWithHeading.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/components/ExpandableSection/examples/ExpandableSectionWithHeading.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/components/ExpandableSection/examples/ExpandableSectionWithHeading.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/components/ExpandableSection/examples/ExpandableSectionWithHeading.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/components/ExpandableSection/examples/ExpandableSectionWithHeading.tsx
Outdated
Show resolved
Hide resolved
…ExpandableSectionWithHeading.tsx Co-authored-by: Eric Olkowski <[email protected]>
…ExpandableSectionWithHeading.tsx Co-authored-by: Eric Olkowski <[email protected]>
…ExpandableSectionWithHeading.tsx Co-authored-by: Eric Olkowski <[email protected]>
…ExpandableSectionWithHeading.tsx Co-authored-by: Eric Olkowski <[email protected]>
…ExpandableSectionWithHeading.tsx Co-authored-by: Eric Olkowski <[email protected]>
…ExpandableSectionWithHeading.tsx Co-authored-by: Eric Olkowski <[email protected]>
Closes #8506
including Eric's comment at the bottom of that story.
Example/doc and the DOM structure:
