Merge pull request #24895 from leboncoin/fix-overflowtooltip

fix(core-components): set variant to inherit on OverflowTooltip Typography
This commit is contained in:
Fredrik Adelöw
2024-06-05 15:32:35 +02:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Use `inherit` variant on OverflowTooltip underlying Typography component.
@@ -53,7 +53,9 @@ export function OverflowTooltip(props: Props) {
title={props.title ?? (props.text || '')}
placement={props.placement}
>
<Typography className={classes.typo}>{props.text}</Typography>
<Typography className={classes.typo} variant="inherit">
{props.text}
</Typography>
</Tooltip>
);
}