Skip to content
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

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

Merged
merged 4 commits into from
Aug 30, 2022

Conversation

cee-chen
Copy link
Member

@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
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
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

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