-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Right now, it seems impossible to create several sections of color swatches on a styleguide page, at least without creating a bunch of extra sub sections.
It looks like the color_grid molecule is called only under two conditions:
- The section itself is called color-swatches and the colors are included in the section definition (which precludes subsections)
- The final part of the section is color-swatches, which means in order to have sections, you'd need to name them something like 'colors.primary.color-swatches'.
If you follow the second method the styleguide looks like:
Ideally, the color swatches would be able to be displayed under the 'primary' subsection, rather than having to tack on an additional 'color-swatches' sub-sub-section.
One possible solution would be to have the color grid called if any part of the section definition contains color-swatches. Then you can have the main section defined as 'color-swatches', and add addition sections by defining them as 'color-swatches.primary'.
It would end up looking like this:
Metadata
Metadata
Assignees
Labels
No labels