Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make button background styles more specific #2407

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

laurelfulford
Copy link
Contributor

@laurelfulford laurelfulford commented Nov 14, 2024

All Submissions:

Changes proposed in this Pull Request:

This PR fixes an issue I noticed while working on Automattic/newspack-blocks#1958 -- the background image used for the Link icon was getting overridden on hover by the non-specific background hover styles coming from the theme.

This PR fixes the issue by switching background to background-color so it won't affect background images; it's not specific to ras-acc, so I made the change in trunk.

How to test the changes in this Pull Request:

  1. Apply the PR and run npm run build.
  2. Add some button blocks and confirm their hover styles still work.
  3. Test around the theme and make sure other hover styles work as expected -- things like comment forms, the search and mobile menu toggle in the header, etc.

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@laurelfulford laurelfulford added the [Status] Needs Review The issue or pull request needs to be reviewed label Nov 14, 2024
@laurelfulford laurelfulford marked this pull request as ready for review November 14, 2024 19:36
@laurelfulford laurelfulford requested a review from a team as a code owner November 14, 2024 19:36
Copy link
Contributor

@chickenn00dle chickenn00dle left a comment

Choose a reason for hiding this comment

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

Looks good!

@github-actions github-actions bot added [Status] Approved The pull request has been reviewed and is ready to merge and removed [Status] Needs Review The issue or pull request needs to be reviewed labels Nov 14, 2024
@laurelfulford
Copy link
Contributor Author

Thanks!

@laurelfulford laurelfulford merged commit 21f6a4e into trunk Nov 14, 2024
5 checks passed
Copy link

Hey @, good job getting this PR merged! 🎉

Now, the needs-changelog label has been added to it.

Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label.

If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label.

Thank you! ❤️

matticbot pushed a commit that referenced this pull request Nov 15, 2024
# [2.3.0-alpha.1](v2.2.0...v2.3.0-alpha.1) (2024-11-15)

### Bug Fixes

* make button background styles more specific ([#2407](#2407)) ([21f6a4e](21f6a4e))

### Features

* **author-archive:** replace twitter icon with x ([2f4709a](2f4709a))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.3.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Nov 25, 2024
# [2.3.0](v2.2.1...v2.3.0) (2024-11-25)

### Bug Fixes

* make button background styles more specific ([#2407](#2407)) ([21f6a4e](21f6a4e))

### Features

* add Bluesky to the profile fields ([#2413](#2413)) ([a4eb21b](a4eb21b))
* add Bluesky to the Social Links menu ([#2412](#2412)) ([e32f604](e32f604))
* **author-archive:** replace twitter icon with x ([2f4709a](2f4709a))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released on @alpha released [Status] Approved The pull request has been reviewed and is ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants