docs(accordion,actionbar,actionmenu,alertdialog): site docs to storybook#2770
Conversation
|
File metricsSummaryTotal size: 4.64 MB* 🎉 No changes detected in any packages * Size determined by adding together the size of the main file for all packages in the library.* Results are not gzipped or minified. * An ASCII character in UTF-8 is 8 bits or 1 byte. |
|
🚀 Deployed on https://pr-2770--spectrum-css.netlify.app |
a8ee1ab to
5e5197c
Compare
rise-erpelding
left a comment
There was a problem hiding this comment.
This is a really strong start for this card! The variants are displayed like they are on the docs site and I didn't notice any information that was lost. I had a few questions only:
- For Action Menu - is there a way to expand the size of the canvas? It would be nice to see all of the menu if this is an option (doing a quick search there was a fullscreen parameter, I don't know if that would work?), but it's also ok as is.
- For Action Bar--I didn't check it off in the validation, I noticed that the docs site displayed 3 "subvariants" (if they can be called that)--just label, label with icon, and just icon:
This doesn't seem to work in Storybook (or maybe it does, I only took a really quick look), and I'm not sure if it was a deliberate decision that was made at some point historically or whether that was unintentional. It might be out of scope if it's something that needs to be addressed, and that's ok too, but I wanted to bring it up here.
I also noticed that in Josh's work on Button and Alert Banner that he removed the controls, what are your thoughts on this? I think the argument could be made either way. 🙂
b0ffa93 to
421b2c5
Compare
|
@rise-erpelding thanks for your feedback!
|
rise-erpelding
left a comment
There was a problem hiding this comment.
Checked it out locally since the build is not building, but I can see those changes to Action Menu! Nice work!
| docs: { | ||
| story: { | ||
| inline: false, | ||
| iframeHeight: 250, |
There was a problem hiding this comment.
Oh interesting! Great job catching this fix. Is this a best practice we should document for any component using a popover or that uses a certain type of positioning?
There was a problem hiding this comment.
This is the first time we've used it, but I do think it will be necessary to use on the Docs page of any component that uses absolute positioning. It helps us ensure that the whole component can show in the preview frame for Docs.
421b2c5 to
9cc00a1
Compare
9cc00a1 to
45556d7
Compare
Action menu doesn't require it's own MDX page since the DocumentationTemplate already covers the only variant. This is just an update to the description to include some additional details.
45556d7 to
fa4a884
Compare
|
|
||
| ## Controls | ||
|
|
||
| <Controls /> |
There was a problem hiding this comment.
Since these controls aren't working on any of the canvas', let's use the <ArgTypes of={AccordionStories} /> instead so that's a static representation of the API.

Description
This migrates the documentation from the deprecated docs site over to Storybook, including showing the variants on the Storybook Docs page.
Also includes an addition to the storybook/manager.js to hide stories from the sidebar that have the tag
is-hidden-story.This PR shouldn't need a changeset since it's docs-only.
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
Regression testing
Validate:
To-do list