You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Button Hover Color options on Button Block #4543
CustomizationIssues related to Phase 2: Customization effortsGlobal StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonNeeds DesignNeeds design efforts.[Block] ButtonsAffects the Buttons Block[Type] EnhancementA suggestion for improvement.
.wp-block-button__link:hover{ background:#3A3A3A !important; }
This is what I've added to custom theme CSS. Affects all buttons in that class. For now it works fine for me. The !important is important for override purposes, because for some strange reason somewhere else the background has been set already at :hover.
Reacted by Jabe, Musa, Łukasz ISU Biedroń , H. Adam Lenz, John Spikerson, Tony Manoilov, Israel de la Torre, Onur Oztaskiran, Tom Finley, FahemCH and 4 more
We might actually get Half-Life 3 and GTA6 before we get a Wordpress hover state in the year of our Lord, Two Thousand and Twenty Five.
Since 2018, we've successfully created the first stable fusion reactor, 3 nations have landed on the moon, we've found a cure for AIDS, and even achieved quantum teleportation, all before Wordpress was able to figure out how to add hover, a native feature to CSS since the late 1900s.
Do you guys need help? I can get it fixed and on prod branch by EOD.
Do you guys need help? I can get it fixed and on prod branch by EOD.
That would be great, thank you. There are more details about what exactly needs to happen on #38277 but essentially we need a system that allows editing of hover, active and focus states for all blocks.
CustomizationIssues related to Phase 2: Customization effortsGlobal StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonNeeds DesignNeeds design efforts.[Block] ButtonsAffects the Buttons Block[Type] EnhancementA suggestion for improvement.
Activity
karmatosed commentedon Jan 18, 2018
Could we just have a rule of whatever color, the hover should be a little darker?
monika-12 commentedon Jan 19, 2018
I think the hover color should be a little darker than base color.
karmatosed commentedon Jan 19, 2018
@monika-12 yes I agree and let's get this worked on now we have design feedback.
alexandersamson commentedon Apr 21, 2019
.wp-block-button__link:hover{ background:#3A3A3A !important; }This is what I've added to custom theme CSS. Affects all buttons in that class. For now it works fine for me. The !important is important for override purposes, because for some strange reason somewhere else the background has been set already at :hover.
39 remaining items
richtabor commentedon Apr 3, 2023
I agree. This isn't quite in a place to move forward with development.
Jabe64 commentedon Apr 3, 2023
Moreover, additional space will be needed in the future to add icon block inside button block. See #16513 and #16484 for more information.
richtabor commentedon Aug 9, 2023
This is being explored holistically as part of #38277.
Let's close this to maintain focus on standardizing interactive states across the board.
interpner commentedon Apr 30, 2024
+1
mateitudor commentedon Jun 22, 2024
it's been 84 years
interpner commentedon Aug 7, 2024
85
hadamlenz commentedon Feb 28, 2025
86... happy new year
SH4LIN commentedon May 20, 2025
Any update on this?
HostNewMexico commentedon Oct 22, 2025
We might actually get Half-Life 3 and GTA6 before we get a Wordpress hover state in the year of our Lord, Two Thousand and Twenty Five.
Since 2018, we've successfully created the first stable fusion reactor, 3 nations have landed on the moon, we've found a cure for AIDS, and even achieved quantum teleportation, all before Wordpress was able to figure out how to add hover, a native feature to CSS since the late 1900s.
Do you guys need help? I can get it fixed and on prod branch by EOD.
scruffian commentedon Oct 23, 2025
That would be great, thank you. There are more details about what exactly needs to happen on #38277 but essentially we need a system that allows editing of hover, active and focus states for all blocks.