For buttons, what would be the selector if I want to add a background color to a::active pseudo element?
Thanks
For buttons, what would be the selector if I want to add a background color to a::active pseudo element?
Thanks
Hello @wbgTHEMECO,
Thanks for writing in!
The :active will be overridden with the base background of the button element. You might try to use this custom css instead:
.x-anchor.x-anchor-button:active {
background-color: red !important;
}
.x-anchor.x-anchor-button:hover {
background-color: green !important;
}
.x-anchor.x-anchor-button:focus {
background-color: blue !important;
}
.x-anchor.x-anchor-button:link {
background-color: magenta !important;
}
I used distinct color to easily spot if the code will work.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.