-
-
Notifications
You must be signed in to change notification settings - Fork 336
feat(chore): optional outline on focus-visible #2801
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
base: develop
Are you sure you want to change the base?
Conversation
|
See https://stackoverflow.com/questions/31402576/enable-focus-only-on-keyboard-use-or-tab-press for analysis how big players style it. In #2799 I have described an issue for tab focus for button (and dropdown). As the PR is coded now, it will imply outline for Is there any way how to simply not add |
Sure .ui.button:focus-visible {
outline: revert;
} |
|
Yes, please add this revert style for buttons and other important components. |
No, at least not now, because that won't fit the FUI default theme and every browser displays that differently. If you want this consistent people should be able to define the outline as desired via changing the less variables in this PR. And there are combinations like labeled input where this would need additional styling to look good. If you don't care about all this, then i suggest to add this as custom css in your app. Putting this hardcoded into FUI ,i can already hear several people scream about the visual change in the next version |
|
I consider this a bug. One proof - So I propose: |
|
Here is a default FF style obtained from so Current Fomantic-UI button/dropdown/checkbox UX can be tested on https://dev.atk4.org/demos/form-control/input2.php. |
# Conflicts: # src/definitions/collections/form.less # src/definitions/modules/slider.less
UpdateI changed the PR to support custom outline and outline-offset styling for :focus-visible now. Next steps/ todo:
|
ko2in
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
# Conflicts: # src/definitions/modules/dropdown.less


Description
This PR allows to declare a specific focus-visible outline for some components where the default outline is set to none.
The default will be kept to none because FUI mostly shows focus by providing a different color (e.g. buttons) or would not visually fit.
To reduce CSS selectors only a value != none will be rendered, so by default the CSS output wont change
Now the user can decide to change
@focusVisibleOutlineglobally in a custom site.variables or individually inside a custom themes {component.variables}Closes
#2799