Skip to content

UnitControl component keeps accent color when is disabled #62969

@matiasbenedetto

Description

@matiasbenedetto

Description

UnitControl component keeps accent color when is disabled

Step-by-step reproduction instructions

  1. Add a UnitControl component to the editor and pass disabled prop as true.
  2. Look at the rendered styles (the unit select component still renders the accent color instead of the greyed disabled one).

Screenshots, screen recording, code snippet

Screencast.from.28-06-24.14.41.30.webm

Environment info

  • WordPress 6.5.4
  • Gutenberg trunk

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions