Skip to content

[Emotion] Convert EuiDescriptionList - #5971

Merged
breehall merged 66 commits into
elastic:mainfrom
breehall:emotion/description-list
Jul 27, 2022
Merged

breehall merged 66 commits into
elastic:mainfrom
breehall:emotion/description-list

Conversation

@breehall

@breehall breehall commented Jun 15, 2022 •

Copy link
Copy Markdown
Contributor

Summary

This PR converts EuiDescriptionList and the euiBreakpoint mixin to Emotion

Updated the EuiDescriptionListTitle and EuiDescriptionListDescription by allowing them to contain their own styles based on the align, type, textStyle, and compressed props. These components receive access to the props from the new EuiDescriptionListContext which passes down the four props.

While this is a change in architecture, I don't believe that this would be a breaking change because nothing will change with the implementation for EuiDescriptionList.

Updated EuiDescriptionList docs examples to give more insight on using EuiDescriptionListTitle and EuiDescriptionListDescription manually.

Checklist

  • Checked 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 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
  • A changelog entry exists and is marked appropriately

@cee-chen

Copy link
Copy Markdown
Contributor

jenkins test this

@kibanamachine

Copy link
Copy Markdown
Contributor

…nts to be displayed with flex instead of block
@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@breehall
breehall marked this pull request as ready for review June 21, 2022 00:27
@breehall breehall mentioned this pull request Jun 22, 2022
49 tasks done
@breehall
breehall requested a review from cee-chen June 27, 2022 13:42
@breehall

Copy link
Copy Markdown
Contributor Author

Hey @constancecchen, do you mind reviewing this?

@cee-chen

Copy link
Copy Markdown
Contributor

Hey Bree! No problem, but as a heads up I'm currently working on the latest Kibana EUI upgrade and reviewing Elizabet's EuiIcon PR, so it may take me a day to get to reviewing this PR.

@breehall

Copy link
Copy Markdown
Contributor Author

@constancecchen It completely slipped my mind that you're currently working on the upgrade! I don't want to overload you. Is it ok if I reassign it?

@cchaos

cchaos commented Jun 27, 2022

Copy link
Copy Markdown
Contributor

@breehall I can take a pass at it for you today

@breehall

Copy link
Copy Markdown
Contributor Author

@cchaos Awesome, thank you!

@kibanamachine

Copy link
Copy Markdown
Contributor

@breehall
breehall marked this pull request as draft June 27, 2022 19:41
breehall and others added 11 commits July 26, 2022 10:10
…ps. The type prop will be available by accessing the data-type attribute on EuiDescriptionList
@kibanamachine

Copy link
Copy Markdown
Contributor

…the function. Updated snapshots that were required from the move of the data-type attribute from the child DescriptionList elements to the parent
@kibanamachine

Copy link
Copy Markdown
Contributor

@cee-chen

Copy link
Copy Markdown
Contributor

@breehall Looking good! My only blocking comments are on on the xl media query selector, everything else is optional.

@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@cee-chen cee-chen left a comment

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.

🎉 It's happening!! Thanks for your patience with all my feedback!

@kibanamachine

Copy link
Copy Markdown
Contributor

@breehall
breehall merged commit 59df738 into elastic:main Jul 27, 2022
@breehall
breehall deleted the emotion/description-list branch September 18, 2023 19:36
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.

6 participants