Skip to content

GlobalStylesUI: Remove unused CSS rule#77456

Merged
mirka merged 2 commits intoWordPress:trunkfrom
R1shabh-Gupta:cleanup/global-styles-ui-remove-unused-css
Apr 17, 2026
Merged

GlobalStylesUI: Remove unused CSS rule#77456
mirka merged 2 commits intoWordPress:trunkfrom
R1shabh-Gupta:cleanup/global-styles-ui-remove-unused-css

Conversation

@R1shabh-Gupta
Copy link
Copy Markdown
Contributor

What?

Follow up to #77335

Removes the unused .global-styles-ui-preview CSS rule from packages/global-styles-ui/src/style.scss.

Why?

During review of #77335 (which replaced cursor: pointer with the --wpds-cursor-control design token), it was noted that the .global-styles-ui-preview selector is not referenced anywhere in the codebase and is dead CSS. This PR cleans it up.

How?

Deletes the .global-styles-ui-preview ruleset from style.scss. No other files are affected since the class is unused.

Testing Instructions

  1. Verify no visual regressions in the Global Styles UI.
  2. Search the codebase for .global-styles-ui-preview to confirm it is not used anywhere.

Use of AI Tools

None

@R1shabh-Gupta R1shabh-Gupta marked this pull request as ready for review April 17, 2026 13:58
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 17, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: R1shabh-Gupta <rishabhwp@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@mirka mirka self-requested a review April 17, 2026 16:05
@mirka mirka added the [Type] Code Quality Issues or PRs that relate to code quality label Apr 17, 2026
Copy link
Copy Markdown
Member

@mirka mirka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup!

@mirka mirka enabled auto-merge (squash) April 17, 2026 16:25
@mirka mirka merged commit 79fefd0 into WordPress:trunk Apr 17, 2026
50 of 51 checks passed
@github-actions github-actions Bot added this to the Gutenberg 23.1 milestone Apr 17, 2026
ciampo pushed a commit that referenced this pull request Apr 21, 2026
Co-authored-by: R1shabh-Gupta <rishabhwp@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants