box-ui-elements icon indicating copy to clipboard operation
box-ui-elements copied to clipboard

fix(menu): focus next menu item when focused item removed

Open ivanthai opened this issue 3 years ago • 0 comments

Fixed an issue where removing a focused menu item element will not set focus to the next element. This leads to poor a11y UX when the focus moves to the last menu element

In the demo below, Sharing & Details menu item is removed when resized to > 768px

Before: Focuses last element if focused element is removed

correct-focus-on-rm-element-bug

After: Focuses next element if focused element is removed

menu-fix-correct-focus-on-rm-element

ivanthai avatar Aug 15 '22 22:08 ivanthai