view_components icon indicating copy to clipboard operation
view_components copied to clipboard

`ActionMenu` items lose focus when zooming in/out

Open strackoverflow opened this issue 6 months ago • 2 comments

This is something that came up during an internal accessibility review (staff link). In PVC's ActionMenu component, there is a bug where the currently focused menu item changes when the user changes their browser zoom level:

https://github.com/user-attachments/assets/0b6f85c6-0564-44d7-ba60-c478ac718d7b

This is confusing behavior for users who rely on assistive technologies. Ideally, users would be able to zoom their browser without the currently focused menu item switching on them. It's worth noting that this problem does not seem to affect the React version of ActionMenu:

https://github.com/user-attachments/assets/bc21fd54-c023-43a5-a7bc-b7be0afba14f

strackoverflow avatar Jun 25 '25 15:06 strackoverflow

@strackoverflow just wanted to check if you're working on a fix for this/have any further clarity on way forward? cheers!

hellojanehere avatar Jul 14 '25 16:07 hellojanehere

Hey @hellojanehere - I haven't had a chance to work on this yet given my other priorities...wish I had more details to share with you!

strackoverflow avatar Jul 14 '25 21:07 strackoverflow