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

chore(react-keytips): add themes addon #238

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

mainframev
Copy link
Contributor

@mainframev mainframev commented Sep 23, 2024

adding themes addon for upcoming #221

@@ -52,6 +52,7 @@
"@storybook/addon-essentials": "7.6.10",
"@storybook/addon-interactions": "^7.5.3",
"@storybook/addon-storysource": "7.6.10",
"@storybook/addon-themes": "7.6.17",
Copy link
Contributor

Choose a reason for hiding this comment

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

all sb versions needs to be on same version - please bump other packages as well

Copy link
Contributor

@Hotell Hotell left a comment

Choose a reason for hiding this comment

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

action required - ty

@@ -4,6 +4,9 @@ const config: StorybookConfig = {
stories: ['../stories/**/index.stories.@(js|jsx|ts|tsx|mdx)'],
addons: [
'@nx/react/plugins/storybook',
'@storybook/addon-docs',
Copy link
Contributor

Choose a reason for hiding this comment

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

seems this adds more than "advertised" within the PR 👀

  • why do we need actions ? is anyone using that ( from my personal experiences using those might be an anti-pattern )
  • what about the docs addon ?

<Story />
</FluentProvider>
),
withThemeFromJSXProvider({
Copy link
Contributor

Choose a reason for hiding this comment

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

this starts to become a maintenance burden / hard to manage boilerplate - this should be implemented as part of sb plugin ( we have this in core repo AFAIR ? -> it will be published and streamlined here as well in future )

I'd start just with adding this functionality to your package in order to not introduce unmaintained boilerplate while accommodating your package needs. wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about this as well, but after noticed it's not published and was't sure if it's planned to be published, decided to use this approach as for contrib that might be sufficient to use official sb plugin for theming. Will close this one then. Thanks.

@@ -1,6 +1,6 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"ignorePatterns": ["!**/*", "storybook-static"],
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this needed ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

was added automatically when I run generator, will check why it was added

Copy link
Contributor

Choose a reason for hiding this comment

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

what happened here ?

@mainframev mainframev changed the title add @stortybook/addon-themes with default themes to packages docs(react-keytips): add themes addon Sep 24, 2024
@Hotell Hotell changed the title docs(react-keytips): add themes addon chore(react-keytips): add themes addon Sep 24, 2024
Copy link
Contributor

@Hotell Hotell left a comment

Choose a reason for hiding this comment

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

please make sure to provide description of your PR. ty

@mainframev mainframev merged commit 85613a1 into microsoft:main Sep 24, 2024
3 checks passed
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.

2 participants