-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Describe the bug
The new hover behaviour in V4 means that on a touch device such as a Surface Laptop, hover no longer works even when using the mouse. A common UI paradigm is to hide action buttons until the user hovers over them in order to unclutter the UI. Now in V4, the user is no longer able to mouse over and click the buttons. The new behaviour makes sense for phones etc, but not for laptops IMHO.
To Reproduce
Steps to reproduce the behavior:
<IconButton className={!hidden group-hover:!flex
}
onClick={(e: any) => { e.stopPropagation(); setMenuOpen(index); }}>
The button is never visible on a Surface Laptop - it was in V3.
Expected behavior
Users with a mouse should be able to see hovered items
Browser/Device (if applicable)
- OS: Windows 11
- Browser: Edge
- Version: latest
Additional context
The workaround is to add @custom-variant hover (&:hover); to get the old behaviour, but I am not sure this change was meant to break every touchscreen laptop.