fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

DetailsList: when focusing out, the focus css remains

Open satbai opened this issue 9 years ago • 4 comments

Repro steps:

  1. Use the tab key to navigate to a list item - its background turns blue on focus
  2. Click the focus away from the list
  3. The list item is still blue

Expected behavior: 3. The list item that was blue on focus turns back to the color that it originally was

satbai avatar May 03 '17 16:05 satbai

I can't seem to repro this. Can you supply a screenshot/animated gif of what your're seeing?

micahgodbolt avatar May 03 '17 16:05 micahgodbolt

@micahgodbolt

  1. on focus through keyboard navigation: image
  2. clicked the focus to a different component: image

It looks like the is-selected class is still present when you've clicked the focus away.

satbai avatar May 03 '17 17:05 satbai

I think the point is that the blue is not "focus" but, as the class implies, "selected". So if you click away, it should stay selected. Does this make sense? I can check with a designer if you think this behavior is incorrect.

micahgodbolt avatar May 03 '17 18:05 micahgodbolt

Ah, I see. If it's by design I'm also fine with it!

satbai avatar May 03 '17 18:05 satbai