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

[CSS-in-JS] Update mixin function API pattern #5904

Merged
merged 12 commits into from
May 26, 2022

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented May 17, 2022

Summary

Related to #5892

Refactoring mixin functions to use the following API pattern

const euiMixin = (
  euiTheme: UseEuiTheme;
  required: PropertyThatIsRequired;
  optional?: {
    optionalKey1?: something;
    optionalKey2?: something;
  }
) => {}

Checklist

  • Checked in both light and dark modes
  • Props have proper autodocs and playground toggles
  • Checked Code Sandbox works for any docs examples
  • Checked for breaking changes and labeled appropriately
  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link

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

@thompsongl thompsongl marked this pull request as ready for review May 23, 2022 16:33
@kibanamachine
Copy link

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

@cchaos
Copy link
Contributor

cchaos commented May 23, 2022

Can you add a section to the wiki around this pattern?

@thompsongl thompsongl requested a review from cchaos May 24, 2022 19:02
@kibanamachine
Copy link

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

@thompsongl thompsongl requested a review from cchaos May 25, 2022 19:33
@kibanamachine
Copy link

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

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Member

@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.

My EuiText PR will probably cause some merge conflicts with this, would super appreciate that merging in first if possible (due to CI shenanigans and me being out after today) 🙇

@thompsongl
Copy link
Contributor Author

would super appreciate that merging in first if possible

No problem!

@thompsongl thompsongl enabled auto-merge (squash) May 26, 2022 21:07
@kibanamachine
Copy link

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

@thompsongl thompsongl merged commit 805960c into elastic:main May 26, 2022
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