You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update heading levels in the FAQ component (#1053)
* add tests asserting desired heading structure
* update default FAQ.Subheading heading level to h4
* render FAQ.Question as a h5 if there is a FAQ.Subheading present
* update FAQGroup to respect all provided FAQ.Heading props, not just children
* render FAQ.Question as a h5 if nested inside a FAQ.Group
* fix incorrect FAQ.Question heading levels FeaturePreviewLevelTwo playground
* add changeset
* update default FAQ.Subheading level in docs
* update changeset
* ensure FAQ.Question props are respected when there is a FAQ.Subheading
* extract mockSubheading out to own variable in tests
* handle FAQ.Items being wrapped in fragments
* handle the case where FAQ.Items are wrapped in a fragment and an array
it('renders the heading as a h3, the subheading as a h4, and the question as a h5 when there is a subheading present, and the FAQ.Item is wrapped in a Fragment',()=>{
it('renders the heading as a h3, the subheading as a h4, and the question as a h5 when there is a subheading present, FAQ.Items are wrapped in a Fragment, and all FAQ.Items are wrapped in an array',()=>{
0 commit comments