Skip to content
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

Six Icon Button stays pressed #269

Open
pennal opened this issue Jul 3, 2024 · 0 comments
Open

Six Icon Button stays pressed #269

pennal opened this issue Jul 3, 2024 · 0 comments

Comments

@pennal
Copy link
Collaborator

pennal commented Jul 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant