[field-base] Add support for focus({ focusVisible: true })
to force setting focus-ring
#1357
Labels
a11y
Accessibility issue
enhancement
New feature or request
Impact: Low
Severity: Minor
vaadin-control-state-mixin
Focus ring on touch devices
The field gets the
focus-ring
(andfocused
, judging by the blue label text) state also on touch devices. It should not, as at least iOS preventsautofocus
from working at all (it will not focus the field and open the keyboard).No focus ring when focusing programmatically
Works differently from
autofocus
and does not apply thefocus-ring
state, although it should. You can use the same https://vaadin-login-proto.glitch.me example to see the behavior (click the “Log in” button which moves the focus to the “Username” field).Since the focus is moved programmatically (vs by the user) we should let the user know visually more prominently where the focus has been moved.
The text was updated successfully, but these errors were encountered: