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

Replace Emotion theme context with a custom context implementation #10438

Closed
wants to merge 20 commits into from

Conversation

fabian-hiller
Copy link
Member

Issue: #10231 (comment)

What I did

I have added a custom context to the storybook theming package and replaced the previous emotion apis or rewritten it to use the new context.

How to test

I have started a storybook from the examples directory to check if there are errors in the console. I am open for further tests.

  • Is this testable with Jest or Chromatic screenshots? - No
  • Does this need a new example in the kitchen sink apps? - No
  • Does this need an update to the documentation? - No

Notes

Please have a look at my code and add improvements if necessary.

Credits

@ndelangen ndelangen self-assigned this Apr 15, 2020
@ndelangen
Copy link
Member

Thanks for taking this on @fabian-hiller this is not an easy task. 🙏

@ndelangen
Copy link
Member

I've fixed a few TS typings, but I there are more. Perhaps you could investigate if you could improve the typings of styled somehow?

@ndelangen
Copy link
Member

ndelangen commented Apr 16, 2020

Actually it's currently withTheme that seems to have incorrect typings.

export const withTheme = (Component: any) => {

@fabian-hiller
Copy link
Member Author

I've fixed a few TS typings, but I there are more. Perhaps you could investigate if you could improve the typings of styled somehow?

I don't have too much experience with TypeScript yet, so I think it's better if someone else does it.

# Conflicts:
#	addons/a11y/src/components/Report/__snapshots__/HighlightToggle.test.js.snap
@stale stale bot added the inactive label May 15, 2020
@storybookjs storybookjs deleted a comment from stale bot May 15, 2020
@stale stale bot removed the inactive label May 15, 2020
@stale stale bot added the inactive label Jun 5, 2020
@connor-baer
Copy link
Contributor

connor-baer commented Jun 5, 2020

I'd love to see this merged in Storybook 6.

@mrmckeb + @ndelangen, I see that you tried to fix the types but based on the test failures I can't tell if you succeeded. Is there anything left to do, something I could help with?

@stale stale bot removed the inactive label Jun 5, 2020
@storybookjs storybookjs deleted a comment from stale bot Jun 8, 2020
@stale
Copy link

stale bot commented Jul 3, 2020

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

@stale stale bot added the inactive label Jul 3, 2020
@javialon26
Copy link

any news on this?

@stale stale bot removed the inactive label Jul 20, 2020
@stale
Copy link

stale bot commented Aug 16, 2020

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

@stale stale bot added the inactive label Aug 16, 2020
@stale
Copy link

stale bot commented Sep 20, 2020

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

@stale stale bot closed this Sep 20, 2020
@connor-baer
Copy link
Contributor

Now that Storybook 6 is out, is this something that can be tackled in a minor release? Or do we need to wait until v7?

@stof stof deleted the emotion-theme-provider-fix branch May 25, 2022 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants