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

[EuiContextMenu] Fix panels.width prop typing to accept all CSS width values #6043

Merged
merged 3 commits into from
Jul 11, 2022

Conversation

cee-chen
Copy link
Contributor

Summary

closes #5980

This resolves two issues in the linked thread:

  • A consumer who wants to set width: 100%; CSS on a non-popover'ed EuiContextMenu (which can be accomplished by passing width: '100%', on each panels[] object) - our typing needed to be updated to allow for all CSS values of width, not just numbers
  • Lack of prop documentation of the panels prop on EuiContextMenu

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
- [ ] Added or updated jest and cypress tests
- [ ] 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 requested a review from elizabetdev July 11, 2022 20:57
@cee-chen cee-chen marked this pull request as ready for review July 11, 2022 20:59
@cee-chen cee-chen changed the title [EuiContextMenu] [EuiContextMenu] Fix panels.width prop typing to accept all CSS width values Jul 11, 2022
@kibanamachine
Copy link

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

@cee-chen cee-chen enabled auto-merge (squash) July 11, 2022 21:40
@cee-chen cee-chen merged commit 41f6913 into elastic:main Jul 11, 2022
@cee-chen cee-chen deleted the contextmenu/width branch July 11, 2022 21:48
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.

[EuiContextMenu] Add "style" prop to context menu
3 participants