Skip to content

Commit

Permalink
getTooltipStyles: Fix unnecessary comment change
Browse files Browse the repository at this point in the history
  • Loading branch information
cubuspl42 committed May 18, 2023
1 parent bdb79c7 commit cd2520f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/styles/getTooltipStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function getTooltipStyles(
const tooltipVerticalPadding = spacing.pv1;
const tooltipFontSize = variables.fontSizeSmall;

// We calculate tooltip width based on the tooltip's inner text width so the tooltip is just big enough to fit text and prevent white space.
// We calculate wrapper width based on the tooltip's inner text width so the wrapper is just big enough to fit text and prevent white space.
// If the text width is less than the maximum available width, add horizontal padding.
// Note: tooltipContentWidth ignores the fractions (OffsetWidth) so add 1px to fit the text properly.
const rootWrapperWidth = tooltipContentWidth && tooltipContentWidth + spacing.ph2.paddingHorizontal * 2 + 1;
Expand Down

0 comments on commit cd2520f

Please sign in to comment.