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

Buttons block: add behavior settings on hover #92916

Open
tanjoymor opened this issue Jul 24, 2024 · 1 comment
Open

Buttons block: add behavior settings on hover #92916

tanjoymor opened this issue Jul 24, 2024 · 1 comment
Labels
[Feature] Core Blocks Blocks that come with Gutenberg. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Pri] Normal [Product] WordPress.com All features accessible on and related to WordPress.com. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. [Type] Feature Request Feature requests

Comments

@tanjoymor
Copy link

What

Can we add options for the Buttons block to control the "hover" state of the button? Such as being able to control the text and background-color?

Why

A simple setting like this shouldn't need custom CSS to resolve. Some themes include a default hover effect (which might not align with brand colors), others don't have one at all.

How

This CSS was written for the Outline variation as an example:

.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
background-color: transparent;
color: red;
border-color: red;
}
PGREE4y7jbrUIMrA54jveLOZ4Jm9p1uMw79e6Voc.mp4
@tanjoymor tanjoymor added [Type] Feature Request Feature requests [Product] WordPress.com All features accessible on and related to WordPress.com. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Core Blocks Blocks that come with Gutenberg. labels Jul 24, 2024
@mrfoxtalbot
Copy link

@mrfoxtalbot mrfoxtalbot added [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. [Pri] Normal labels Jul 24, 2024
@mrfoxtalbot mrfoxtalbot moved this to To triage in Dotcom Core Fix Needed Sep 2, 2024
@inaikem inaikem moved this from Triaged to Needs Core/3rd Party Fix in Automattic Prioritization: The One Board ™ Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Core Blocks Blocks that come with Gutenberg. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Pri] Normal [Product] WordPress.com All features accessible on and related to WordPress.com. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. [Type] Feature Request Feature requests
Projects
Status: Needs Core/3rd Party Fix
Development

No branches or pull requests

2 participants