Currently for the Card component, although we can customize the default elevation, we don't have an easy way to customize the elevation on hover. The current behavior has a couple drawbacks:
interactive=true@shuyangli we chose not to support this because the whole thing is done elegantly in CSS using :hover and box-shadow variables. customizing the hover requires either awkward JS or a _ton_ more CSS.
Can we instead export the box-shadows variables for all elevations then? My current workaround is to override the :hover css, but the variable doesn't seem to be exported, which makes for sad copy-paste times
@shuyangli i got your back https://github.com/palantir/blueprint/blob/develop/packages/core/src/common/_variables.scss#L74-L106
Oh sweet! That's exactly what I wanted. Do we want to add this to blueprint docs as well?
@shuyangli https://blueprintjs.com/docs/#core/variables
Yeah, I don't see these specific ones on that page - I will submit a PR for it
Most helpful comment
@shuyangli we chose not to support this because the whole thing is done elegantly in CSS using
:hoverand box-shadow variables. customizing the hover requires either awkward JS or a _ton_ more CSS.