customize button hover color #903
Answered
by
claviska
Chandler-Zhu
asked this question in
Help
-
|
Beta Was this translation helpful? Give feedback.
Answered by
claviska
Sep 7, 2022
Replies: 1 comment 2 replies
-
This can be done by customizing the button's sl-button[variant="default"]::part(base):hover {
border: blue;
background: blue;
color: white;
}
sl-button[variant="default"]::part(base):active {
border: darkblue;
background: darkblue;
color: white;
} Example: https://codepen.io/claviska/pen/bGMVKQd?editors=0100 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Chandler-Zhu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can be done by customizing the button's
base
part.Example: https://codepen.io/claviska/pen/bGMVKQd?editors=0100