Ability to disable "Create a new story" button from sidebar #30425
tuckergordon
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
|
Yeah this has been confusing. In the meanwhile we can hide it through css but this is a fragile bandaid of a fix: <!-- .storybook/manager-head.html -->
<style>
/* Hide "Create a New Story" button via css because `disableSaveFromUI: true` doesn't work in the sidebar */
.search-field + div:has(> button > svg) {
display: none !important;
}
</style> |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Are there any updates to this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
While the "create a new story" button in the sidebar is a nice idea, it has led to confusion on our team and we have encountered similar issues to those described in #28377
The current documentation for
disableSaveFromUIis within a section that has a screen recording of the sidebar button being used, which would seem to suggest that settingdisableSaveFromUItotruewould disable the button.disableSaveFromUIonly impacts Controls though and does not remove the button from the sidebar.Describe the solution you'd like
Either of
disableSaveFromUIalso removes the "Create a new story" button from the sidebarshowCreateStoryButton, perhaps within preview parameters oraddons.setConfig()Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
no
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions