Skip to content

Using tokens.fontWeight requires a cast to be done when applied in makeStyles #21212

Description

@khmakoto

Actual behavior:

After we've started exporting the tokens to css variable mapping and using them inside of makeStyles calls there has been a need to cast tokens.fontWeight as React.CSSProperties['fontWeight'] because makeStyles expects fontWeight to be one of a number of values and not any string.

Expected behavior:

We should fix this so that we don't have a need to cast whenever we use tokens.fontWeight inside of a makeStyles call.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions