Fleet UI: Activity feed shows focus outline on click, should only show on keyboard navigation
Fleet versions
- Discovered:
- Reproduced:
Web browser and operating system:
💥 Actual behavior
Clicking an activity in the activity feed puts a black focus outline around the activity. The outline shows on mouse click, which doesn't match the rest of the UI where focus outlines only appear on keyboard navigation.
https://github.com/user-attachments/assets/1daad46a-3bea-4083-9b36-67c75d94aef0
🛠️ Expected behavior
No outline on click. Focus-visible state should only appear when tabbing to the activity with the keyboard — matches the pattern used elsewhere in the UI.
🧑💻 Steps to reproduce
These steps:
- [ ] Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
- [ ] Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
- Go to the dashboard
- Click on an activity in the activity feed
- Notice the black outline around the activity
🕯️ More info (optional)
Should use :focus-visible (keyboard nav only) instead of :focus (which fires on click too), matching how other interactive elements in the UI handle focus state.
Tested on 4.89.0 (Main)
PASSED ✅
Click, no shadow cast, Smooth as cloud city's glass panes, Ease for hands and eyes.