Skip to content

Update gradient-parser dependency to fix parsing of size keywords in gradients #69782

@dhruvikpatel18

Description

@dhruvikpatel18

The CustomGradientPicker component fails to parse gradients using size keywords (e.g., closest-side, farthest-corner) in theme.json. When selecting such a gradient, the picker shows correctly in the UI but the subcomponents don't populate and an error appears in the console.

The root cause is the outdated version of the gradient-parser library (0.1.5) currently used in the components package. This bug has been fixed in version 1.0.0 of the gradient-parser library, and we need to update to the latest version (1.0.2).

Related

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions