Skip to content

[EuiPageSection] Add component prop, default to section tag#6192

Merged
cee-chen merged 4 commits intoelastic:mainfrom
cee-chen:page-section-tag
Aug 30, 2022
Merged

[EuiPageSection] Add component prop, default to section tag#6192
cee-chen merged 4 commits intoelastic:mainfrom
cee-chen:page-section-tag

Conversation

@cee-chen
Copy link
Copy Markdown
Contributor

@cee-chen cee-chen commented Aug 30, 2022

Summary

It seems incredibly bizarre to have a component named EuiPageSection that doesn't actually use the <section> tag for semantic meaning.

If for some reason <section> is not applicable, we should support overriding the tag via the component prop (already used as a paradigm in EuiPageTemplate to override <main>).

Checklist

- [ ] Checked in both light and dark modes
- [ ] Checked in mobile
- [ ] Checked in Chrome, Safari, Edge, and Firefox
- [ ] Added documentation
- [ ] Checked Code Sandbox works for any docs examples
- [ ] Checked for breaking changes and labeled appropriately
- [ ] Checked for accessibility including keyboard-only and screenreader modes
- [ ] Updated the Figma library counterpart

@cee-chen cee-chen marked this pull request as ready for review August 30, 2022 21:39
Copy link
Copy Markdown
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

LGTM, those snapshots make it look like it works 😁

@cee-chen cee-chen enabled auto-merge (squash) August 30, 2022 22:00
Copy link
Copy Markdown
Contributor

@1Copenut 1Copenut left a comment

Choose a reason for hiding this comment

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

LGTM! I ran it through a quick axe scan and looked at the Accessibility tree, no outliers.

@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_6192/

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.

4 participants