Skip to content

Commit

Permalink
remove useless comments
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed May 2, 2021
1 parent af21780 commit c985637
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/material-ui/src/Tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ const TooltipTooltip = experimentalStyled(
},
},
)(({ theme, styleProps }) => ({
/* Styles applied to the tooltip (label wrapper) element. */
backgroundColor: alpha(theme.palette.grey[700], 0.92),
borderRadius: theme.shape.borderRadius,
color: theme.palette.common.white,
Expand All @@ -129,43 +128,37 @@ const TooltipTooltip = experimentalStyled(
margin: 2,
wordWrap: 'break-word',
fontWeight: theme.typography.fontWeightMedium,
/* Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */
...(styleProps.arrow && {
position: 'relative',
margin: 0,
}),
/* Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */
...(styleProps.touch && {
padding: '8px 16px',
fontSize: theme.typography.pxToRem(14),
lineHeight: `${round(16 / 14)}em`,
fontWeight: theme.typography.fontWeightRegular,
}),
/* Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */
[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]: {
transformOrigin: 'right center',
marginRight: '24px',
[theme.breakpoints.up('sm')]: {
marginRight: '14px',
},
},
/* Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */
[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]: {
transformOrigin: 'left center',
marginLeft: '24px',
[theme.breakpoints.up('sm')]: {
marginLeft: '14px',
},
},
/* Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */
[`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]: {
transformOrigin: 'center bottom',
marginBottom: '24px',
[theme.breakpoints.up('sm')]: {
marginBottom: '14px',
},
},
/* Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */
[`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]: {
transformOrigin: 'center top',
marginTop: '24px',
Expand Down

0 comments on commit c985637

Please sign in to comment.