-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Storybook background make grid size customizable #11128
Comments
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! |
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! |
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! |
Hey @T04435, I traced down export const parameters = {
grid: {
cellSize: 5
}
} Cheers! |
Thanks @Dangoo it just worked. |
@yannbf can you add to the docs? possibly update in 6.1 for consistency and deprecate the old version?
|
@Dangoo Grid is not an addon tho.. |
@shilman my bad, was misguided - even though it would be valuable feature to turn of either of them. |
Hey @Dangoo that is pretty valuable feedback, thanks for that! I'm currently making changes in the addon and will make sure that it's well documented as well as it allows you to disable the grid separately from backgrounds. If you have some feedback or ideas, feel free to share! |
Hey @yannbf thanks for taking this on! Regarding the grid here are some additional customization ideas:
Regarding your comment here about creating a theme selector, do you see any chance the background selector could be "remote controlled" based on a selected theme (light background for light theme, dark background for dark theme)? |
Huzzah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.0-alpha.16 containing PR #12368 that references this issue. Upgrade today to try it out! You can find this prerelease on the |
I have added
"@storybook/addon-backgrounds": "^5.3.19",
and see that it has the option to toggle a grid:I see that the grid is generated by the linked file and the size is set to 20 on the linked line.
storybook/addons/backgrounds/src/containers/GridSelector.tsx
Line 17 in 62cd262
Is there a way to change the
cellSize
value?I see there is another plugin (theming) that has a similar option, but don't want to add an extra plugin for the same feature.
storybook/examples/cra-kitchen-sink/.storybook/manager.js
Line 12 in 62cd262
The text was updated successfully, but these errors were encountered: