Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(dial,dialog,divider,dropindicator): Migrate docs to storybook pt7 (
#2833) * docs(dial): add missing stories and chromatic coverage * chore(tray): corrects variable spelling (isDismissible) * docs(dropindicator): add dropindicator template for docs page * docs(divider): add missing stories and template fixes - adds static color stories, a sizing story and vertical story - removes customStyles arg from default args because they were overwriting other styles that are dependent on the orientation (i.e. vertical) - refactors chromatic coverage to reflect removal of custom styles in default template * docs(dialog): add missing stories, template fixes, chromatic coverage - adds all sizing stories, with hero, no divider, fullscreen/fullscreen- takeover, scorlling example stories - refactors template to accommodate buttons when the dialog is dismissible (no buttons based on guidance/documentation), vs. non- dismissible - adds test coverage example for new stories - fixes sizing template issues in Variants() for showModal: false - renames heading for dialog arg to dialogHeading (to avoid variable naming conflicts between the component and Sizing function used within Variants()) * docs(dialog): revert dialogHeading arg name change revert arg name "dialogHeading" back to "heading." It's a known issue that the Variant() function is mixing the dialog's heading arg with the Sizing() heading arg. That refactoring and fix will be done in a new branch. * chore(dial): extends isFocused shared state instead of deleting the isFocused type just to replace it with an identical isFocusVisible type & control, this extends isFocused definition to allow the isFocusVisible variable name * chore(dialog): remove remaining comments from rebase * docs(divider): use Sizes decorator instead of custom sizing template * docs(divider): fix VRTs with refactored divider styles VRT diffs were found for Menu and Picker, so tracing them back, were caused by an incorrect inline-size property of 100% (as opposed to the corrected "auto") * chore(dialog): remove comments * chore(dialog): expand test coverage variants * chore(dialog): add default layout to args table * chore(dialog): refactor custom template for testing To work better with React's hot module reloader, this should only call a template once and toggle the inputs based on settings. * chore(dialog): clean up template - use the presence of the hero image url as a boolean, instead of an actual hasHeroImage boolean - removes layout !== default since it doesn't do anything anyways - use .every() array method for layout class modifiers * chore(dialog): removes hasHeroImage boolean from UI - use the presence of the hero image url as a boolean, instead of actual hasHeroImage boolean * chore(divider): rename VerticalGroup to VerticalSizing this naming matches the other Sizing story, as well as indicates it is going through the Sizes() function. * docs(divider): refactor divider - enforces orientation for divider test cases - creates new minDimensionValues arg to use as visualization. Because the inline and block sizes of the divider are dependant on content (which doesn't exist on this component), this new arg sets example values for min-inline-size and min-block-size. Any other customStyles passed to the component should still render as before, and we are relying on the CSS now instead of the styleMap in the default template. - refactors the min-inline-size/min-block-size in styleMap to use new minDimensionValues arg - adds extra documentation - corrects the default size of divider to small
- Loading branch information