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

Toggle button states are visually indistinguishable (from focus state) #23897

Closed
speller opened this issue Sep 10, 2017 · 3 comments
Closed

Toggle button states are visually indistinguishable (from focus state) #23897

speller opened this issue Sep 10, 2017 · 3 comments
Labels

Comments

@speller
Copy link

speller commented Sep 10, 2017

Toggled button states are totally visually indistinguishable. It is no way to tell the end user is button toggled or not. Do you plan to change it?

@patrickhlauke patrickhlauke changed the title Toggle button states are visually indistinguishable Toggle button states are visually indistinguishable (from focus state) Sep 10, 2017
@andresgalante
Copy link
Collaborator

andresgalante commented Sep 11, 2017

Hi @speller to me this is a visual bug.

Toggle state is the same as active
Active is the same as hover.

This means that if you are hover a btn, and you toggle it you won't be able if it's on or off because it will always look like hover.

I'll try experiment with colors and find a good solution for this one.

@speller
Copy link
Author

speller commented Sep 11, 2017

@andresgalante Thank you for your answer. It is not a bug, but visual issue.

As I imagine users should intuitevely recognise is toggled button on or off. Docs explain checkboxes can be visually represented as toggle buttons, but its appearance is not intuitive and visually hard to recognise. But it should be intuitive like standard checkbox itself. Without this every developer who want to use non-standard checkbox or toggle button will have to make its own custom controls. I think Bootstrap should provide such basic controls out of the box. Toggle buttons and checkboxes are used to show something on or off, and currently it is no way to do that without custom modifications.

As a suggestion it may be useful to make additional feature to allow developers to define state icons. As Bootstrap is not linked to any predefined icon set it will be good enough to set just two icons of developer's favorite icon set and buttons will automatically show them. But it should be an addition to basic visual states defferetiation.

Bootstrap 4 is fresh and modern framework and I hope it will be as complete as possible to avoid wasting time for basic controls development.

@ysds
Copy link
Member

ysds commented Sep 14, 2017

Probably duplicate of #23710

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

No branches or pull requests

5 participants