fix(catalog): EntityContextMenu now focus visible the first element.

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
Carlos Esteban Lopez
2023-06-01 19:45:34 -05:00
parent baa4acbded
commit 47b01e4c53
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog': patch
---
Keyboard navigation to open EntityContextMenu now focus visible the first element.
@@ -142,7 +142,7 @@ export function EntityContextMenu(props: EntityContextMenuProps) {
transformOrigin={{ vertical: 'top', horizontal: 'right' }}
aria-labelledby="long-menu"
>
<MenuList>
<MenuList autoFocusItem={Boolean(anchorEl)}>
{extraItems}
<UnregisterEntity
unregisterEntityOptions={UNSTABLE_contextMenuOptions}