fix(core-components): set variant to inherit on OverflowTooltip Typography

Signed-off-by: Thomas Cardonne <thomas.cardonne@adevinta.com>
This commit is contained in:
Thomas Cardonne
2024-05-24 18:24:45 +02:00
parent eeb5b782de
commit 59cee8160b
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.
@@ -52,7 +52,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>
);
}