Merge pull request #31908 from Caitlin-cooling/overflow-tooltip-width

feat: Add tooltipClasses prop to OverflowTooltip component
This commit is contained in:
Ben Lambert
2025-12-08 13:49:04 +01:00
committed by GitHub
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Add `tooltipClasses` prop to `OverflowTooltip` component to allow customisation of the tooltip
@@ -23,6 +23,7 @@ type Props = {
title?: TooltipProps['title'];
line?: number | undefined;
placement?: TooltipProps['placement'];
tooltipClasses?: TooltipProps['classes'];
};
export type OverflowTooltipClassKey = 'container';
@@ -51,6 +52,7 @@ export function OverflowTooltip(props: Props) {
<Tooltip
title={props.title ?? (props.text || '')}
placement={props.placement}
classes={props.tooltipClasses}
>
<Typography className={classes.typo} variant="inherit">
{props.text}