-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Focus outline is not applied on mouse click? #495
Comments
This outline looks kinda acceptable on a text input but it's distracting on any other types of inputs in a typical click'n'set scenario, which is why we decided to hide it on mouse clicks and show on keyboard navigation. The only solutions I see here:
|
Which elements? Maybe we should redesign their focus indicator.
Well, at least it would make them consistent. |
I guess we'll show the default focus outline only when the config was invoked via keyboard.
All except the text input.
Other than the reported case, I feel our current solution is clean and simple moreover many apps and sites use it too e.g. github. |
After some quick searchs, it seems that this behavior (hiding outlines of inputs) derives from original Stylish according to #291 (comment).
They have their own |
No, it's not about Stylish, it's what we implemented in #294. |
After checking some code of modal dialogs, I think the correct solution is:
So that if the user hit tab, the focus moves to the first input element inside the dialog. |
I don't think so. In almost all UI I've seen over the last few decades the first focusable item is focused inside the dialog. |
The first focusable item is not consistent in our config dialog. Sometimes it is the form control of the first option but sometimes it is the "feedback" link, which means sometimes the first input get focused but sometimes not. If we need autofocus, I think we should focus on the first item requiring user input. Tested with 26d7c26. If you have previously focused an item through tabs, the outline is still visible: |
Agreed. I never really liked the feedback link getting focused. |
When the config dialog is opened, the first input is focused and has a blue outline, but if the input is getting focused again by mouse click, the outline disappears.
I think the focus indicator should be shown no matter how the input is getting focused.
The text was updated successfully, but these errors were encountered: