Skip to content

Commit

Permalink
[Tooltip] Make enterTouchDelay match the specification (#15008)
Browse files Browse the repository at this point in the history
* Changed enterTouchDelay from 1000ms to 300ms

fixes #14948

* Update Tooltip.js

* yarn docs:api
  • Loading branch information
devsumanmdn authored and oliviertassinari committed Mar 23, 2019
1 parent e8ecc8f commit 1a707c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/material-ui/src/Tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ Tooltip.defaultProps = {
disableHoverListener: false,
disableTouchListener: false,
enterDelay: 0,
enterTouchDelay: 1000,
enterTouchDelay: 700,
interactive: false,
leaveDelay: 0,
leaveTouchDelay: 1500,
Expand Down
2 changes: 1 addition & 1 deletion pages/api/tooltip.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import Tooltip from '@material-ui/core/Tooltip';
| <span class="prop-name">disableHoverListener</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | Do not respond to hover events. |
| <span class="prop-name">disableTouchListener</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | Do not respond to long press touch events. |
| <span class="prop-name">enterDelay</span> | <span class="prop-type">number</span> | <span class="prop-default">0</span> | The number of milliseconds to wait before showing the tooltip. This property won't impact the enter touch delay (`enterTouchDelay`). |
| <span class="prop-name">enterTouchDelay</span> | <span class="prop-type">number</span> | <span class="prop-default">1000</span> | The number of milliseconds a user must touch the element before showing the tooltip. |
| <span class="prop-name">enterTouchDelay</span> | <span class="prop-type">number</span> | <span class="prop-default">700</span> | The number of milliseconds a user must touch the element before showing the tooltip. |
| <span class="prop-name">id</span> | <span class="prop-type">string</span> |   | 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. |
| <span class="prop-name">interactive</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | Makes a tooltip interactive, i.e. will not close when the user hovers over the tooltip before the `leaveDelay` is expired. |
| <span class="prop-name">leaveDelay</span> | <span class="prop-type">number</span> | <span class="prop-default">0</span> | The number of milliseconds to wait before hiding the tooltip. This property won't impact the leave touch delay (`leaveTouchDelay`). |
Expand Down

0 comments on commit 1a707c6

Please sign in to comment.