Skip to content

Conversation

@donnapep
Copy link
Contributor

@donnapep donnapep commented Feb 22, 2025

Resolves #

Proposed Changes

Previously, we were applying colours to the .wp-block-button element, which caused issues with colours not working when set through Global Styles. To address this, colour styles have been moved to .wp-block-button__link to match what core does for the Buttons block.

Testing Instructions

  1. Activate any theme besides Course (learning-mode-compat.scss isn't loaded for Course theme).

New/Updated Hooks

Deprecated Code

Pre-Merge Checklist

  • PR title and description contain sufficient detail and accurately describe the changes
  • Adheres to coding standards (PHP, JavaScript, CSS, HTML)
  • All strings are translatable (without concatenation, handles plurals)
  • Follows our naming conventions (P6rkRX-4oA-p2)
  • Hooks (p6rkRX-1uS-p2) and functions are documented
  • New UIs are responsive and use a mobile-first approach
  • Code is tested on the minimum supported PHP and WordPress versions

@donnapep donnapep self-assigned this Feb 22, 2025
@github-actions
Copy link

Test the previous changes of this PR with WordPress Playground.

@github-actions
Copy link

Test the previous changes of this PR with WordPress Playground.

@github-actions
Copy link

Test the previous changes of this PR with WordPress Playground.

@donnapep donnapep force-pushed the fix/button-global-styles branch from 4637f90 to e7cf660 Compare March 15, 2025 20:10
@github-actions
Copy link

Test the previous changes of this PR with WordPress Playground.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants