-
Notifications
You must be signed in to change notification settings - Fork 55
Add labelColor #1217
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
Add labelColor #1217
Conversation
|
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.
Pull Request Overview
This PR adds a new Storybook pattern for label color tokens, rendering them as interactive chips and in a data table.
- Imported
Box
andToken
from@primer/react
- Added
Label
story: maps label tokens toToken
components and aDataTable
for visualization
Comments suppressed due to low confidence (1)
docs/storybook/stories/Color/Patterns/AllPatterns.stories.tsx:890
- The variable
colorTokens
is not defined in this file. You need to import or pass in the correct token list (e.g.,import {colorTokens} from 'path/to/tokens'
) before using it.
const data = getTokensByName(colorTokens, 'label').map(token => {
Co-authored-by: Copilot <[email protected]>
Summary
List of notable changes:
What should reviewers focus on?
Steps to test: