unthemed buttons shouldn't also show moz-focus-inner
Categories
(Core :: Layout: Form Controls, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: aja, Assigned: emilio)
References
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Actual results:
buttons/button-like inputs showing outline focus-ring also show moz-focus-inner
Expected results:
buttons/button-like inputs showing outline focus-ring should not also show moz-focus-inner
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Why not? You mean in unthemed buttons? So focusing <input type="button" style="background: white">
and such?
Reporter | ||
Comment 2•5 years ago
|
||
Why not?
- It's redundant with outline focus ring.
- It's 1990's ugly, and can't be styled.
- Can't even get rid of it with -moz-appearance:none; -webkit-appearance:none; appearance:none;
- It's an unnecessary difference with other rendering agents.
My suggestion would be to remove the inner focus ring from button/button-like things from appearances button and auto as well as none.
If someone really wants an inner vs outer ring, it can be accomplished with a negative outline-offset.
I've noticed that the inner ring isn't displayed just by toggling focus on and off via devtools, but rather by tabbing to it.
I don't think themed vs unthemed makes a difference now...you're stuck with it regardless.
I suppose a multiple-ring syntax could be standardized in a manner similar to border and box-shadows, but why?
Assignee | ||
Comment 3•5 years ago
|
||
It can be styled, using ::-moz-focus-inner { border: 0 }
for example, fwiw.
It's used for windows buttons, and Windows still uses the inner focus if I'm not mistaken. So removing them by default for themed windows buttons is probably a no-go.
Reporter | ||
Comment 4•5 years ago
|
||
What's your thinking for widget.disable-native-theme-for-content=true?
and thanks! for the magic incantation ::-moz-focus-inner { border: 0 }
Assignee | ||
Comment 5•5 years ago
|
||
That shouldn't show inner focus rings for themed buttons. So I guess the only remaining bit is whether we should show it for un-themed buttons.
Now that we show outlines, I agree it may be good not to show two focus indicators for those...
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
Now that we have outlines for them, unthemed select / buttons show two
different focus indicators, which is undesired.
Furthermore, the ones in comboboxes are basically unremovable /
unstylable, so authors end up having to use massive hacks to do it, see
bug 1580935.
This fixes it elegantly (IMO) by just rendering them when themed (which
is what these were for anyway, to match the windows theme).
Reporter | ||
Comment 9•5 years ago
|
||
LGTM
Comment 10•5 years ago
|
||
bugherder |
Description
•