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

UI: Fix disable parameter to hide addon panel #12171

Merged
merged 2 commits into from Aug 25, 2020

Conversation

shilman
Copy link
Member

@shilman shilman commented Aug 20, 2020

Issue: N/A

Alternative to #12159 #12161 that accepts disable: true in addition to disabled: true for hiding addon tabs per @ndelangen 's suggestion.

This is consistent with how we've documented disable and also consistent with how disabling addon decorators via parameters already works. See https://github.com/storybookjs/storybook/blob/master/lib/addons/src/make-decorator.ts#L21

What I did

  • Support both [key].disable and [key].disabled.
  • Deprecated disabled for removal in 7.0
  • Documented migration and rationale

cc @stof @ndelangen @tmeasday @yannbf @jonniebigodes

How to test

See updated stories

Copy link
Member

@yannbf yannbf left a comment

Choose a reason for hiding this comment

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

LGTM :D

@shilman shilman merged commit 0bf34e0 into next Aug 25, 2020
@stof stof deleted the fix/addons-parameter-disable branch May 25, 2022 09:34
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.

None yet

2 participants