creates a docs-only <ColorComponent> to allow display of separate colors #377
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Discussed with @owendodd and Design would like to have the option to not display every color in Palette in the same section, instead picking out a color or group of colors to display.
This is due to a change in the way we're dealing with colors - in Notion, you can see Primary, Secondary, and Deprecated colors, and these lists will likely grow and change over time.
The docs update in this PR allows greater flexibility by creating a mini-component that takes a color (e.g.
black100
) and outputting a color bar, hex code, and title in the same manner as the oldColors
page.After this is merged, @owendodd can create
<ColorComponents />
using the docs admin to match our current colors.Two things that could be improved about this implementation:
Old page, which always displayed every color:
New page, which allows display of select colors: