diff --git a/packages/material-ui/src/Tooltip/Tooltip.js b/packages/material-ui/src/Tooltip/Tooltip.js index 1246561c576ddc..d2ddc7ded0130d 100644 --- a/packages/material-ui/src/Tooltip/Tooltip.js +++ b/packages/material-ui/src/Tooltip/Tooltip.js @@ -20,43 +20,59 @@ function round(value) { function arrowGenerator() { return { '&[x-placement*="bottom"] $arrow': { + flip: false, top: 0, left: 0, marginTop: '-0.95em', + marginLeft: 4, + marginRight: 4, width: '2em', height: '1em', '&::before': { + flip: false, borderWidth: '0 1em 1em 1em', borderColor: 'transparent transparent currentcolor transparent', }, }, '&[x-placement*="top"] $arrow': { + flip: false, bottom: 0, left: 0, marginBottom: '-0.95em', + marginLeft: 4, + marginRight: 4, width: '2em', height: '1em', '&::before': { + flip: false, borderWidth: '1em 1em 0 1em', borderColor: 'currentcolor transparent transparent transparent', }, }, '&[x-placement*="right"] $arrow': { + flip: false, left: 0, marginLeft: '-0.95em', + marginTop: 4, + marginBottom: 4, height: '2em', width: '1em', '&::before': { + flip: false, borderWidth: '1em 1em 1em 0', borderColor: 'transparent currentcolor transparent transparent', }, }, '&[x-placement*="left"] $arrow': { + flip: false, right: 0, marginRight: '-0.95em', + marginTop: 4, + marginBottom: 4, height: '2em', width: '1em', '&::before': { + flip: false, borderWidth: '1em 0 1em 1em', borderColor: 'transparent transparent transparent currentcolor', },