Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions packages/material-ui/src/Tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down