Merge pull request #26564 from backstage/fix/support-menu-items-should-not-be-buttons

fix: support menu items should not be buttons in favour of links
This commit is contained in:
Fredrik Adelöw
2024-09-09 15:54:13 +02:00
committed by GitHub
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}