-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Tooltip] Add enterNextDelay prop #19766
Conversation
Details of bundle changes.Comparing: 264684b...40497b8
|
On hold until we agree on the behavior in #19765 |
If we all agree on the proposed solution in #19765 (comment), we could move forward. |
@@ -183,7 +183,8 @@ const Tooltip = React.forwardRef(function Tooltip(props, ref) { | |||
disableFocusListener = false, | |||
disableHoverListener = false, | |||
disableTouchListener = false, | |||
enterDelay = 0, | |||
enterDelay = 200, |
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.
The spec seems fuzzy about this value. However, measuring from the videos of https://material.io/components/tooltips/#behavior, I come up with a value close to this.
It also matches a bit more experience on Gmail, Google Keep, and Google Calendar (I suspect they use a higher value, probably more like 300).
Co-Authored-By: Matt <github@nospam.33m.co>
I have benchmarked with a bunch of other UI libraries, a non 0 enter delay seems to be common (and value usually over 200ms), so using 200ms here seems like a solid change. |
Closes #19765