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

Add the ability to hide or show a prop in the schema table on the Pattern Lab site #995

Merged
merged 1 commit into from
Dec 18, 2018

Conversation

mikemai2awesome
Copy link
Collaborator

Jira

http://vjira2:8080/browse/BDS-847

Summary

Adds the ability to hide or show certain props in the Pattern Lab schema table.

Details

Each prop in the schema table should have the ability to hide or show, in case a developer does not want to expose an internal prop from being consumed by a design system user. Hence the option to hide or show it in the schema table on the Pattern Lab site.

How to test

Try to add hidden: true to any prop in a component's schema, make sure it doesn't show up in Pattern Lab anymore.

@sghoweri
Copy link
Contributor

^ as a follow-up, I’d recommend we eventually add the ability to hide / show these hidden schema options once some planned JS updates get in (ie. some of the state management updates) so devs can flip a switch to optionally display these internal API options + have the browser remember their preferences (how Pattern Lab’s layout and theme toggles work).

Copy link
Contributor

@sghoweri sghoweri left a comment

Choose a reason for hiding this comment

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

@danielamorse any thoughts before we merge?

Copy link
Collaborator

@danielamorse danielamorse left a comment

Choose a reason for hiding this comment

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

Looks good to me. Approved 👍

@sghoweri sghoweri merged commit 0136ed2 into master Dec 18, 2018
@sghoweri sghoweri deleted the feature/bds-847-hide-and-show-props-in-schema branch December 18, 2018 21:50
@sghoweri sghoweri mentioned this pull request Jan 8, 2019
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.

3 participants