BotFramework-Emulator icon indicating copy to clipboard operation
BotFramework-Emulator copied to clipboard

Emulator UI: navbar icons should lose focus after they are pressed

Open mewa1024 opened this issue 7 years ago • 2 comments

Build 4.0.262-nightly

Click "Bot Explorer" icon top open/close pane. The blue bar stays present until you click on a different part of the app. The blue bar should appear when pressed and disappear when not pressed. Occurs in all themes.

image

mewa1024 avatar Sep 06 '18 01:09 mewa1024

focus events occur by default when any item is clicked. Overriding this default browser behavior is not trivial because:

  1. focus events occur before click events which means a flash of the focused state on the button will occur before it is removed manually each time it is clicked.
  2. Preventing the focused state flash would mean implementing additional logic to track mousedown events, switch a flag and then prevent focus using event.preventDefault() in the focus handler.

justinwilaby avatar Sep 13 '18 12:09 justinwilaby

@vishwacsena move this to 4.1? There are other pieces of UI that stay focused after they are pressed.

mewa1024 avatar Oct 12 '18 01:10 mewa1024

Looks like it got fixed due accessibility updates. Now focus lands on the changed page UI

OEvgeny avatar Feb 27 '24 19:02 OEvgeny