Harmonize focus indicator across the toolbox
Categories
(DevTools :: Inspector, defect, P2)
Tracking
(firefox121 fixed)
| Tracking | Status | |
|---|---|---|
| firefox121 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
At the moment, we have a few different way to indicate something has the focus.
- By default, we have a subtle 1px dotted dark outline
- On some text input, we add a 1px blue solid outline/border
- In the accessibility panel, we add a solid 2px outline + some box-shadow
We should unify all those so we have a consistent way of indicating focus.
We can take inspiration in other Firefox areas, for example the settings panel has a nice 2px blue solid outline (no box-shadow), which does work really nicely.
We also deliberately don't add a focus outline on various buttons (and instead only play with background color); we should probably revise this as it makes it easier to have a distinct property to indicate focus with other existing states (disabled/active/…)
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
The new focus indicator is bigger and has a better contrast, making it more accessible
than the thin dotted line we had previously.
It also includes a white box-shadow so even on our blue "active/selected" backgrounds,
the indicator is still visible (e.g. in the markup view, for a selected node, with
focus on badges / text inputs).
Finally, I tried to go over the elements of the shared components and most used
panels to adjust the outline offset when it was not visible/clipped, or when
it could be conflated with the focused element border/background.
Updated•2 years ago
|
Comment 3•2 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 7•2 years ago
|
||
This fixes the focus indicator on the debugger
editor footer toolbar items.
This also handle focus indicator for searchbox
when another item than the input is focused.
Comment 8•2 years ago
|
||
Comment on attachment 9361983 [details]
Bug 1855200 - [devtools] Focus indicator tweaks. r=#devtools-reviewers.
Revision D192769 was moved to bug 1863495. Setting attachment 9361983 [details] to obsolete.
Description
•