Merge pull request #8350 from kuangp/fix/sidebar

fix(sidebar): use ellipsis styling for overflowed text
This commit is contained in:
Johan Haals
2021-12-07 10:34:27 +01:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Use ellipsis style for overflowed text in sidebar menu
@@ -235,7 +235,7 @@ const SidebarItemWithSubmenu = ({
{itemIcon}
</div>
{text && (
<Typography variant="subtitle2" className={classes.text}>
<Typography variant="subtitle2" className={classes.label}>
{text}
</Typography>
)}
@@ -402,7 +402,7 @@ export const SidebarItem = forwardRef<any, SidebarItemProps>((props, ref) => {
{itemIcon}
</div>
{text && (
<Typography variant="subtitle2" className={classes.text}>
<Typography variant="subtitle2" className={classes.label}>
{text}
</Typography>
)}