Chromium Code Reviews
Description[WebUI] Modify action-link's .no-outline on input only.
This CL updates .no-outline logic for action-link sets to improve how it
emulates <a> :focus styling:
- On mousedown, add .no-outline (to remove focus ring).
- On keyup with Tab, remove .no-outline (to reenable focus ring).
- Leave .no-outline as-is for focus and blur events, so when blur source
is external to webpage (e.g., Alt-Tab, or Tab exiting content) we
preserve same outline as before.
- Make .no-outline affect styling only on :focus.
This approach is attractive for its simplicity. Known caveats:
- Tab-focus followed by click-focus removes focus ring (unlike <a>).
- Click-focus, Tab-away and Shift-Tab back: Focus ring appears is
delayed since it's applied on keyup event.
BUG=701268, 698270
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Patch Set 1 #
Total comments: 1
Messages
Total messages: 5 (3 generated)
|
|||||||||||||||||||||||||||||||||||||