feat: Add tooltipClasses prop to OverflowTooltip component

Signed-off-by: Caitlin Cooling <ccooling97@gmail.com>
This commit is contained in:
Caitlin
2025-11-27 10:28:29 +00:00
committed by Caitlin Cooling
parent 5465f05cdd
commit 4c00303f3d
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': minor
---
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}