17
rated 0 times
[
22]
[
5]
/ answers: 1 / hits: 30953
/ 7 Years ago, tue, march 7, 2017, 12:00:00
According to React Material-UI docs, I have a prop hoveredStyle
to work with: http://www.material-ui.com/#/components/icon-button
I want to use IconButton
for two purposes:
- Utilize its
tooltip
prop for accessibility - I can wrap Material-UI svg icons directly
However, I don't want the cursor to change to a pointer when I hover (which is default behavior I believe), so I changed it like so.
import DeleteIcon from 'material-ui/svg-icons/action/delete
const hoveredStyle = {
cursor: 'initial'
}
render() {
return (
<IconButton tooltip=Description here hoveredStyle={hoveredStyle}>
<DeleteIcon />
</IconButton>
)
}
This works fine, except that the split millisecond that I enter hover mode on the icon, I still see the default hand pointer before it gets set to the normal mouse pointer. How do I approach this?
More From » css