[ListItemSecondaryAction] visibility on hover
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
ListItemSecondaryAction
should be able to be hidden
by default, then visible
on hover. This is a really common use case, so if possible, we should consider a clean way to make this (optional) behavior available behind a boolean property.
Current Behavior
When implemented with css sibling selectors and hovering over the secondary action, the icon blinks continuously. When hovered anywhere else on the ListItem
, the blinking stops and works as expected.
Steps to Reproduce (for bugs)
Using css sibling selector (shown above): https://codesandbox.io/s/xo0mmyv2oo
Context
Secondary actions visible for larger lists (e.g. Google contacts list) can be overwhelming. Hiding icons until hovered is a common way to declutter user interfaces.
Your Environment
Tech | Version |
---|---|
Material-UI | 1.0.0-beta.33 |
React | 16.2.0 |
browser | Chrome |
Any guidance @oliviertassinari @kof as to what the root cause of blinking?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
https://codesandbox.io/s/l3n2nwpzq7
Awesome thanks @oliviertassinari. I couldn’t get your url to load your changes so I forked it in case anyone else runs across it - https://codesandbox.io/s/649v7kozm3
Thanks again for taking a look.