fix(many): change the CSS media selector for hover effect#26938
fix(many): change the CSS media selector for hover effect#26938alexandre-khoury wants to merge 1 commit intoionic-team:mainfrom alexandre-khoury:fix/18570-hover-some-android
Conversation
|
|
|
Thank you for submitting a PR! It’s been determined that the Ionic components and the browser are working as intended. The issue is coming from certain devices, like Samsung Galaxy, that are not reporting the correct input type. Chromium queries the device/operating system for a list of inputs (mouse, keyboard, touchscreen, etc) and uses those inputs to determine if any inputs support hover states. Since the device is not reporting the correct input type, the sticky hover state is being applied. The team has decided not to apply a patch internally for this bug since this issue needs to be fixed on the device level. While the proposed PR does resolve the issue for certain devices, it regresses hover behavior on devices that do not report A workaround for this issue is to override the hover state for the desired component. You can do this by using some user agent detection (or device detection) and then applying the hover state to the desired component through a CSS class. |
Pull request checklist
Please check if your PR fulfills the following requirements:
ionic-docsrepo, in a separate PR. See the contributing guide for details.npm run build) was run locally and any changes were pushednpm run lint) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
On some Android devices, elements get stuck having the hover effect.
Issue URL: #18570
What is the new behavior?
The issue is fixed on at least the Samsung Galaxy S10. I wasn't able to test on other devices.
Does this introduce a breaking change?
Other information
I based the fix on the suggestions made here #18570 (comment)