Skip to content

[EuiContextMenuPanelDescriptor] title should accept ReactNode rather than string#4933

Merged
gjones merged 4 commits intoelastic:masterfrom
gjones:contextmenu-title-accept-reactnode
Jul 6, 2021
Merged

[EuiContextMenuPanelDescriptor] title should accept ReactNode rather than string#4933
gjones merged 4 commits intoelastic:masterfrom
gjones:contextmenu-title-accept-reactnode

Conversation

@gjones
Copy link
Copy Markdown
Contributor

@gjones gjones commented Jul 1, 2021

Summary

Updated EuiContextMenuPanelDescriptor's title prop type from string to ReactNode

Checklist

- [ ] Check against all themes for compatibility in both light and dark modes
- [ ] Checked in mobile
- [ ] Checked in Chrome, Safari, Edge, and Firefox

  • Props have proper autodocs and playground toggles
    - [ ] Added documentation
  • Checked Code Sandbox works for the any docs examples
    - [ ] Added or updated jest tests
    - [ ] Checked for breaking changes and labeled appropriately
    - [ ] Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@gjones gjones requested review from elizabetdev and thompsongl July 1, 2021 23:53
@kibanamachine
Copy link
Copy Markdown

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

@gjones gjones changed the title [EuiContextMenuPanelDescriptor] title should accept ReactNode rather than strong [EuiContextMenuPanelDescriptor] title should accept ReactNode rather than string Jul 2, 2021
Copy link
Copy Markdown
Contributor

@elizabetdev elizabetdev left a comment

Choose a reason for hiding this comment

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

Tested in Chrome, Safari, Edge, and, Firefox. LGTM! 🎉

Just added a small suggestion so that consumers know what is the wrapping element.

Responding to feedback.

Co-authored-by: Elizabet Oliveira <elizabet.oliveira@elastic.co>
@kibanamachine
Copy link
Copy Markdown

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

@kibanamachine
Copy link
Copy Markdown

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

@gjones gjones merged commit 52bbe73 into elastic:master Jul 6, 2021
@gjones gjones deleted the contextmenu-title-accept-reactnode branch July 6, 2021 16:47
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