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

Option to stop controls changing a component in Docs view #12692

Open
andywd7 opened this issue Oct 7, 2020 · 2 comments
Open

Option to stop controls changing a component in Docs view #12692

andywd7 opened this issue Oct 7, 2020 · 2 comments

Comments

@andywd7
Copy link

andywd7 commented Oct 7, 2020

Is your feature request related to a problem? Please describe
I think it can be an issue that changes made by controls in the Canvas are also applied/kept in the Docs tab. If someone is playing with the controls for a primary/blue button for example and changes it to danger/red or disabled and then navigates to the Docs then they are shown a red or disabled button for the blue button documentation leading to confusion or misunderstanding.

Describe the solution you'd like
There should be an option/way to disable controls effects for stories when in Docs view, on a global, component and story level ideally. Also another option or as well as there should be a reset button in the story in Docs mode to reset the controls or props to their initial values, like there currently is in the ArgsTable.

Describe alternatives you've considered
Wrting duplicate stories with controls disabled. Adding an ArgsTable in Docs for each story.

Are you able to assist to bring the feature to reality?
No

@stale
Copy link

stale bot commented Dec 26, 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 Dec 26, 2020
@shilman
Copy link
Member

shilman commented Feb 27, 2021

Related #14048

@stale stale bot removed the inactive label Feb 27, 2021
@shilman shilman removed the PN label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants