Skip to content

[EuiTabs] Pass size and expand to all children using a React context provider#6478

Merged
cee-chen merged 3 commits intoelastic:mainfrom
dawitamene:eui-tabs-context
Dec 14, 2022
Merged

[EuiTabs] Pass size and expand to all children using a React context provider#6478
cee-chen merged 3 commits intoelastic:mainfrom
dawitamene:eui-tabs-context

Conversation

@dawitamene
Copy link
Copy Markdown
Contributor

@dawitamene dawitamene commented Dec 13, 2022

Summary

General checklist

  • Checked in Chrome, Safari, Edge, and Firefox
  • Props have proper autodocs and playground toggles
  • Added or updated jest and cypress tests
  • Checked for breaking changes and labeled appropriately
  • A changelog entry exists and is marked appropriately

- [ ] Checked in mobile
- [ ] Checked in both light and dark modes
- [ ] Added documentation
- [ ] Checked Code Sandbox works for any docs examples
- [ ] Checked for accessibility including keyboard-only and screenreader modes
- [ ] Updated the Figma library counterpart

@kibanamachine
Copy link
Copy Markdown

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@dawitamene dawitamene changed the title [EuiTabs] Pass size and expand props to all children using a React context provider [EuiTabs] Pass size and expand to all children using a React context provider Dec 13, 2022
@dawitamene dawitamene marked this pull request as ready for review December 13, 2022 18:30
@cee-chen cee-chen self-requested a review December 14, 2022 21:42
@cee-chen
Copy link
Copy Markdown
Contributor

jenkins test this

Copy link
Copy Markdown
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

Awesome work on this @dawitam11 - I've QA'd locally and everything works great. I've updated the tests for EuiTabs to more clearly capture intended effects via snapshots, as well as a test case for the specific issue in #6311 (wrappers/grandchildren). LMK if anything in the commit I pushed up didn't make sense.

Really appreciate your fantastic community contributions as always! 🎉

@cee-chen cee-chen enabled auto-merge (squash) December 14, 2022 21:48
@kibanamachine
Copy link
Copy Markdown

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

@cee-chen cee-chen merged commit e5531ad into elastic:main Dec 14, 2022
jbudz pushed a commit to elastic/kibana that referenced this pull request Dec 22, 2022
## Summary

`eui@71.0.0` ⏩ `eui@72.0.0`

---

## [`72.0.0`](https://github.com/elastic/eui/tree/v72.0.0)

- Added the `customQuickSelectRender` render prop to
`EuiSuperDatePicker`, which allows customizing the Quick Select popover
([#6382](elastic/eui#6382))
- `EuiFilePicker` styles have been updated to look more like an
interactive element. ([#6479](elastic/eui#6479))
- Added a third argument to `EuiSelectable`'s `onChange` callback. The
single `option` object that triggered the `onChange` event is now also
passed to consumers with its most recent `checked` state
([#6487](elastic/eui#6487))

**Bug fixes**

- `EuiTabs` now passes `size` and `expand` to all children using a React
context provider. ([#6478](elastic/eui#6478))
- Fixed security warnings caused by `trim@0.0.1` sub-dependency
([#6482](elastic/eui#6482))

**Breaking changes**

- Removed `size` and `expand` props from `EuiTab`
([#6478](elastic/eui#6478))

## [`71.1.0`](https://github.com/elastic/eui/tree/v71.1.0)

**Deprecations**

- Renamed `EuiPageSideBarProps` to `EuiPageSideBarProps_Deprecated`, to
reduce usage/confusion with `EuiPageSidebar`
([#6468](elastic/eui#6468))

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
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.

[EuiTabs] Child EuiTabs in nested wrappers do not correctly inherit size from EuiTabs

3 participants