fix: support menu items should not be buttons in favour of links

Signed-off-by: Carl-Erik Bergström <cbergstrom@spotify.com>
This commit is contained in:
Carl-Erik Bergström
2024-09-09 14:10:39 +02:00
parent d729f5ba72
commit af4c1469c2
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Support menu items should not be buttons in favour of links
@@ -67,7 +67,7 @@ const SupportLink = ({ link }: { link: SupportItemLink }) => (
const SupportListItem = ({ item }: { item: SupportItem }) => {
return (
<MenuItem>
<MenuItem button={false}>
<ListItemIcon>
<SupportIcon icon={item.icon} />
</ListItemIcon>
@@ -161,6 +161,7 @@ export function SupportButton(props: SupportButtonProps) {
)}
{React.Children.map(children, (child, i) => (
<MenuItem
button={false}
alignItems="flex-start"
key={`child-${i}`}
className={classes.menuItem}