Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
use style sheet option
  • Loading branch information
oliviertassinari committed Apr 25, 2020
commit 7a1bba55ae79b1c029d25b54cf95c705f97ec62e
9 changes: 2 additions & 7 deletions packages/material-ui/src/Tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ function round(value) {
function arrowGenerator() {
return {
'&[x-placement*="bottom"] $arrow': {
flip: false,
top: 0,
left: 0,
marginTop: '-0.95em',
Expand All @@ -36,7 +35,6 @@ function arrowGenerator() {
},
},
'&[x-placement*="top"] $arrow': {
flip: false,
bottom: 0,
left: 0,
marginBottom: '-0.95em',
Expand All @@ -50,7 +48,6 @@ function arrowGenerator() {
},
},
'&[x-placement*="right"] $arrow': {
flip: false,
left: 0,
marginLeft: '-0.95em',
marginTop: 4,
Expand All @@ -63,7 +60,6 @@ function arrowGenerator() {
},
},
'&[x-placement*="left"] $arrow': {
flip: false,
right: 0,
marginRight: '-0.95em',
marginTop: 4,
Expand All @@ -82,8 +78,7 @@ export const styles = (theme) => ({
/* Styles applied to the Popper component. */
popper: {
zIndex: theme.zIndex.tooltip,
pointerEvents: 'none',
flip: false, // disable jss-rtl plugin
pointerEvents: 'none', // disable jss-rtl plugin
},
/* Styles applied to the Popper component if `interactive={true}`. */
popperInteractive: {
Expand Down Expand Up @@ -649,4 +644,4 @@ Tooltip.propTypes = {
TransitionProps: PropTypes.object,
};

export default withStyles(styles, { name: 'MuiTooltip' })(Tooltip);
export default withStyles(styles, { name: 'MuiTooltip', flip: false })(Tooltip);