Skip to content

Six Icon Button stays pressed #269

Open
@pennal

Description

Six Webcomponents version

v4.2.3

Steps to reproduce

Whenever the six-icon-button is pressed, the button stays in a pressed status and the color is changed to a lighter gray.

After a bit of digging, this is due to the :focus modifier on the class of the button. Since the button becomes focused after the click, the applied class is the same as the hover class (and the pressed class) so the button looks like it never goes back to a default state

The easy fix is to remove the :focus modifier, but unfortunately the answer is not that simple. For users using the keyboard to navigate, the button will then become virtually unselectable since it does not show when its selected.

What is expected?

Different styles are used for the states that do not clash with the normal functionality

What is actually happening?

Wrong styling

System Info

No response

Any additional comments?

No response

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions