Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Apply CSS to custom icons #5784

Answered by bbogdanov
arnifreyrs asked this question in Q&A
Mar 29, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @arnifreyrs

https://stackblitz.com/edit/react-ts-qimvzz?file=style.css a quick example to accomplish the color change on hover.

You have to use the https://clarity.design/foundation/icons/api/#icon-css-properties because this is used on a host level to set the icon color.

P.S. The stackblitz playground may not run at the first time and you can resolve that with couple of reloads with DevTools opened

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@arnifreyrs
Comment options

@arnifreyrs
Comment options

Answer selected by arnifreyrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants