Skip to content

[Layout foundations] Update script for extracted props on polaris.shopify.com #7337

@laurkim

Description

@laurkim

For prop types that Extract/Exclude from our existing tokens, polaris.shopify.com shows the TypeScript definition (i.e., Extract<ColorsTokenName, 'surface' | 'surface-subdued'> instead of just 'surface' | 'surface-subdued') and not the expected strings parsed from tokens for some of our alpha layout components. Example screenshot of the AlphaCard background prop from staging site below.

We should explore ways to make this more legible by updating the get-props script.

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions