-
Notifications
You must be signed in to change notification settings - Fork 375
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
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 |
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
rebeccaalpert
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.
Looks good to me!
thatblindgeye
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.
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
740eea7 to
c1f062c
Compare
…eadings Signed-off-by: gitdallas <5322142+gitdallas@users.noreply.github.com>
Signed-off-by: gitdallas <5322142+gitdallas@users.noreply.github.com>
…ExpandableSectionWithHeading.tsx Co-authored-by: Eric Olkowski <70952936+thatblindgeye@users.noreply.github.com>
…ExpandableSectionWithHeading.tsx Co-authored-by: Eric Olkowski <70952936+thatblindgeye@users.noreply.github.com>
…ExpandableSectionWithHeading.tsx Co-authored-by: Eric Olkowski <70952936+thatblindgeye@users.noreply.github.com>
…ExpandableSectionWithHeading.tsx Co-authored-by: Eric Olkowski <70952936+thatblindgeye@users.noreply.github.com>
…ExpandableSectionWithHeading.tsx Co-authored-by: Eric Olkowski <70952936+thatblindgeye@users.noreply.github.com>
…ExpandableSectionWithHeading.tsx Co-authored-by: Eric Olkowski <70952936+thatblindgeye@users.noreply.github.com>
c1f062c to
8680dee
Compare
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
Closes #8506
including Eric's comment at the bottom of that story.
Example/doc and the DOM structure:
