-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Rating] Improve mobile support #18603
[Rating] Improve mobile support #18603
Conversation
On touch screens, the pointer cursor is causing the entire Rating span to flash a blue highlight on click, disable the "pointer" on phone screens to solve this issue
Details of bundle changes.Comparing: 7a329c5...ce596a6
|
@@ -34,6 +34,8 @@ export const styles = theme => ({ | |||
fontSize: theme.typography.pxToRem(24), | |||
color: '#ffb400', | |||
cursor: 'pointer', | |||
// Remove blue highlight |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can just remove this comment as it obviously causes more confusion. The statement itself already says that the highlight is removed. What color the highlight has is platform/user stylesheet dependent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure 👍
Thanks @oliviertassinari @eps1lon |
Thank you, I had this issue on my to do list for quite some time. |
On touch screens, the pointer cursor is causing the entire Rating span to flash a blue highlight on click, disable the "pointer" on phone screens to solve this issue.
To reproduce go to https://material-ui.com/components/rating/ and open dev tools to emulate a phone. Now "tap" on a star to change the rating, note the blue highlight effect.