Skip to content

Global Styles: Reset to defaults action is not working #46484

@andrewserong

Description

@andrewserong

Description

In trunk, within global styles, the Reset to defaults action appears not to be working. From running a git bisect, it appears that the change that introduced the regression was #44770 (the PR that introduced the new browse mode).

Kudos @tellthemachines for flagging the issue!

Step-by-step reproduction instructions

On trunk, open up global styles in a site that has user styles, and attempt to reset the global styles back to the theme defaults. As of #44770, it appears that the drop-down control to reset to defaults no longer works.

For a commit that still works (e.g. prior to #44770) you can checkout 51f0b77, or really any prior to #44770.

Screenshots, screen recording, code snippet

trunk when it was working previously
2022-12-13 10 38 51 2022-12-13 10 37 24

Environment info

  • WP 6.1.1
  • 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

Assignees

Labels

Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Type] RegressionRelated to a regression in the latest release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions