From 1a707c6e013f655617acab6d8b5a1e2c37cbc15c Mon Sep 17 00:00:00 2001 From: Suman Kundu Date: Sat, 23 Mar 2019 15:35:56 +0530 Subject: [PATCH] [Tooltip] Make enterTouchDelay match the specification (#15008) * Changed enterTouchDelay from 1000ms to 300ms fixes #14948 * Update Tooltip.js * yarn docs:api --- packages/material-ui/src/Tooltip/Tooltip.js | 2 +- pages/api/tooltip.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/material-ui/src/Tooltip/Tooltip.js b/packages/material-ui/src/Tooltip/Tooltip.js index 1fcb0f3210cced..f5486190090a02 100644 --- a/packages/material-ui/src/Tooltip/Tooltip.js +++ b/packages/material-ui/src/Tooltip/Tooltip.js @@ -483,7 +483,7 @@ Tooltip.defaultProps = { disableHoverListener: false, disableTouchListener: false, enterDelay: 0, - enterTouchDelay: 1000, + enterTouchDelay: 700, interactive: false, leaveDelay: 0, leaveTouchDelay: 1500, diff --git a/pages/api/tooltip.md b/pages/api/tooltip.md index fdfe6e8d44fceb..80e1ba0a7729f1 100644 --- a/pages/api/tooltip.md +++ b/pages/api/tooltip.md @@ -24,7 +24,7 @@ import Tooltip from '@material-ui/core/Tooltip'; | disableHoverListener | bool | false | Do not respond to hover events. | | disableTouchListener | bool | false | Do not respond to long press touch events. | | enterDelay | number | 0 | The number of milliseconds to wait before showing the tooltip. This property won't impact the enter touch delay (`enterTouchDelay`). | -| enterTouchDelay | number | 1000 | The number of milliseconds a user must touch the element before showing the tooltip. | +| enterTouchDelay | number | 700 | The number of milliseconds a user must touch the element before showing the tooltip. | | id | string |   | The relationship between the tooltip and the wrapper component is not clear from the DOM. This property is used with aria-describedby to solve the accessibility issue. If you don't provide this property. It falls back to a randomly generated id. | | interactive | bool | false | Makes a tooltip interactive, i.e. will not close when the user hovers over the tooltip before the `leaveDelay` is expired. | | leaveDelay | number | 0 | The number of milliseconds to wait before hiding the tooltip. This property won't impact the leave touch delay (`leaveTouchDelay`). |