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

Disabled Buttons Usability (Load & Share & Search) #223

Open
ricardobaeta opened this issue Aug 3, 2019 · 0 comments
Open

Disabled Buttons Usability (Load & Share & Search) #223

ricardobaeta opened this issue Aug 3, 2019 · 0 comments

Comments

@ricardobaeta
Copy link

Problem

A button should always provide visual feedback upon people's interaction - hover/click - despite being disabled. This rule is not being applied to the disabled buttons LOAD & SHARE & SEARCH.

Solution

One step forward on plain usability is to add a “not-allowed” cursor when people :hover disabled LOAD & SHARE & SEARCH. With this solution, we provide enabled & disabled interaction behavior, improving people's experience.

image

Solution Details

Targeting the buttons disabled attribute on the proper Less file, we control its :hover behavior. We attach LOAD & SHARE bblfsh-header__button class, and SEARCH bblfsh-search-panel__button one. Something along what is shown below.

button.bblfsh-header__button:disabled,
input.bblfsh-search-panel__button:disabled {
  cursor: not-allowed;
  pointer-events: all !important;
}

Solution Example

We can see how this usability improvement affects the user experience on source{d} UI.

load-share-search

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