Open RoyEJohnson opened 2 months ago
Lint had a problem with the "Stop containers" phase.
As I read the comment, the focus concern is that the "dialog" (the DisplayNote) doesn't get focus when it appears. That is by design; it's what alt-H is for. In the Disclosure Pattern, the focus does not automatically move from the control button. The user can open and close it repeatedly. They tab to the first revealed item. I'm not finding that to be a hard and fast rule, but it's what I recall LA communicated to us before: they wanted navigation to proceed to the first item. But it's possible I misunderstood and should make the first item focus upon opening. I'll figure out the style regression.
I'm going to have it move focus to the first item.
@jivey Focusing on the first item can result in the hover-highlight competing with the focus-highlight, so I had to add code to make focus follow the mouse within the menu. It's ready to review.
I resolved the focus/hover issue by styling focus and not hover.
DISCO-307 For clarity, changed
ol
tomenu
Also simplified return value of DropdownItem.