Skip to content

[ux] Native tab focus must not be visually supressed #2799

@mvorisek

Description

@mvorisek

Feature Request

When tabindex="0" is set to a (div) button, the div can be focused by a tab.

Currently when such div is focused, no native glow is present. I have identified this is because:
image
outline: none style.

Example (if possible)

  1. open https://dev.atk4.org/demos/form/form.php
  2. click the first input field
  3. press tab
  4. notice the button background changed very slightly, but native tab outline around the button is not present

Screenshot (if possible)

normal:
image

focused:
image

compare it with tab glow in https://dev.atk4.org/demos/interactive/paginator.php for example:
image

Expected fix/behaviour

Not sure why there is outline: none, but at least for :focus-visible pseudo class no outline: none style must be applied.

image
(focused button without outline: none style, notice the native outline/border around the button, the color is not much different visually, but the visual dimension difference makes it very easy to understand what button is (tab) focused)

Metadata

Metadata

Assignees

No one assigned

    Labels

    state/has-prAn issue which has a related PR opentype/featAny feature requests or improvements

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions