Skip to content

Added component prop to EuiPageBody#2410

Merged
andreadelrio merged 4 commits intoelastic:masterfrom
andreadelrio:euiPage-element
Oct 10, 2019
Merged

Added component prop to EuiPageBody#2410
andreadelrio merged 4 commits intoelastic:masterfrom
andreadelrio:euiPage-element

Conversation

@andreadelrio
Copy link
Copy Markdown
Contributor

@andreadelrio andreadelrio commented Oct 10, 2019

Summary

Added component prop to EuiPageBody. Default value is main, consumer can pass a different html tag if needed.

Covers #2359

Checklist

- [ ] Checked in dark mode
- [ ] Checked in mobile
- [ ] Checked in IE11 and Firefox
-[X] Props have proper autodocs
- [ ] Added documentation examples
- [ ] Added or updated jest tests
- [ ] Checked for breaking changes and labeled appropriately
- [ ] Checked for accessibility including keyboard-only and screenreader modes
-[X] A changelog entry exists and is marked appropriately

@andreadelrio andreadelrio changed the title Added component prop to euiPageBody Added component prop to EuiPageBody Oct 10, 2019
Copy link
Copy Markdown
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

Some small stuff. Once you fix, LGTM.

CHANGELOG.md Outdated
- Added new `EuiColorStops` component ([#2360](https://github.com/elastic/eui/pull/2360))
- Added `currency` glyph to 'EuiIcon' ([#2398](https://github.com/elastic/eui/pull/2398))
- Migrate `EuiBreadcrumbs`, `EuiHeader` etc, and `EuiLink` to TypeScript ([#2391](https://github.com/elastic/eui/pull/2391))
- Added `component` prop to `EuiPageBody` ([#2410](https://github.com/elastic/eui/pull/2410))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Added `component` prop to `EuiPageBody` ([#2410](https://github.com/elastic/eui/pull/2410))
- Added `component` prop to `EuiPageBody`, switching the default from `div` to `main` ([#2410](https://github.com/elastic/eui/pull/2410))

children: PropTypes.node,
className: PropTypes.string,

component: PropTypes.string,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add an autodoc comment above this to say what it does.

@andreadelrio andreadelrio merged commit 849e463 into elastic:master Oct 10, 2019
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.

2 participants