-
Notifications
You must be signed in to change notification settings - Fork 201
feat(storybook): custom properties panel #3166
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 0dbf6f1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
2ed616c
to
e1f7a95
Compare
🚀 Deployed on https://pr-3166--spectrum-css.netlify.app |
e1f7a95
to
27b6165
Compare
File metricsSummaryTotal size: 2.24 MB* 🎉 No changes detected in any packages * Size is the sum of all main files for packages in the library.* An ASCII character in UTF-8 is 8 bits or 1 byte. |
754b512
to
59656d1
Compare
59656d1
to
4c2f600
Compare
4c2f600
to
d497927
Compare
d497927
to
82d2f9e
Compare
eb20c09
to
3d14fcc
Compare
e66a6ff
to
df9d5cc
Compare
2eebf01
to
711d4cd
Compare
df9d5cc
to
ff03881
Compare
c68f4e3
to
d2272ea
Compare
15b85cf
to
4d403a2
Compare
@@ -25,6 +25,7 @@ export const AssetListItem = ({ | |||
isBranch = false, | |||
onclick = () => {}, | |||
} = {}, context = {}) => html` | |||
${when(styles, () => html`<style>${styles}</style>`)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -25,6 +25,7 @@ | |||
isBranch = false, | |||
onclick = () => {}, | |||
} = {}, context = {}) => html` | |||
${when(styles, () => html`<style>${styles}</style>`)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -6,6 +6,11 @@ import packageJson from "../package.json"; | |||
import { CheckboxGroup } from "./checkbox.test.js"; | |||
import { AllVariantsCheckboxGroup, DocsCheckboxGroup, Template } from "./template.js"; | |||
|
|||
// Local assets to render the component styles and structure | |||
import styles from "../index.css?inline"; | |||
import metadata from "../dist/metadata.json"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [eslint] reported by reviewdog 🐶
Parsing error: Identifier 'metadata' has already been declared
b5079ad
to
4653ea4
Compare
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
--- Co-authored-by: TarunAdobe <[email protected]>
* docs(assetcard): remove MDX file - adds some missing documentation regarding stories, classes and custom properties - corrects sentence-casing of story names * docs(avatar): remove MDX file - adds some missing documentation regarding stories - reorganizes some information to sit with appropriate story/variant - migrates documentation from MDX file to the stories file instead * chore(avatar): fix disabled test arguments * docs(badge): remove MDX file - adds notice badge variants to semantic story - adds sizing story to docs page - migrates documentation in MDX to stories.js instead * docs(badge): pr fixes - remove empty doc block line - remove html wrapper in favor of content array - add notice badge to test coverage
Expanding the existing themes system to support the new S2 mappings. --- Co-authored-by: castastrophe <[email protected]> Co-authored-by: Patrick Fulton <[email protected]> Co-authored-by: Cory Dransfeldt <[email protected]> Co-authored-by: Aziz Ramos <[email protected]> Co-authored-by: Josh Winn <[email protected]> Co-authored-by: Rise Erpelding <[email protected]> Co-authored-by: Marissa Huysentruyt <[email protected]> Co-authored-by: Rajdeep Chandra <[email protected]> Co-authored-by: TarunAdobe <[email protected]> Co-authored-by: Dragan Eror<[email protected]>
Expanding the existing themes system to support the new S2 mappings. --- Co-authored-by: castastrophe <[email protected]> Co-authored-by: Patrick Fulton <[email protected]> Co-authored-by: Cory Dransfeldt <[email protected]> Co-authored-by: Aziz Ramos <[email protected]> Co-authored-by: Josh Winn <[email protected]> Co-authored-by: Rise Erpelding <[email protected]> Co-authored-by: Marissa Huysentruyt <[email protected]> Co-authored-by: Rajdeep Chandra <[email protected]> Co-authored-by: TarunAdobe <[email protected]> Co-authored-by: Dragan Eror<[email protected]>
4653ea4
to
0dbf6f1
Compare
Description
Adds a new custom properties panel to the development preview pages for each component that surfaces the modifiable custom properties as sourced from the metadata/metadata.json file (note that this is not a live updated list because metadata.json is not generated by storybook).
This panel allows a visitor to put in their own values and see how it impacts the styling of the component in the view panel.
How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Validation steps
--mod-accordion-background-color-default
entry; expect to see the background color of the accordion to update live.To-do list