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

Make it more obvious that nixos options in the search results are clickable #241

Merged
merged 1 commit into from Oct 10, 2018

Conversation

andir
Copy link
Member

@andir andir commented Sep 15, 2018

While talking to someone that just started looking into NixOS we figured
out that he wasn't aware that those search results were clickable at
all. While we already changed the cursor while hovering the entries you
would not really be hinted into clicking on them.

This is especially relevant for people using keyboard navigation
(vim-style or similar) since those entries wouldn't show up as
clickable.

With this commit I am just wrapping the text in an anchor tag. That is
enough to make them appear like other links on the website. They also
appear as clickable when using keyboard navigation.

Before

old

After

new

While talking to someone that just started looking into NixOS we figured
out that he wasn't aware that those search results were clickable at
all. While we already changed the cursor while hovering the entries you
would not really be hinted into clicking on them.

This is especially relevant for people using keyboard navigation
(vim-style or similar) since those entries wouldn't show up as
clickable.

With this commit I am just wrapping the text in an anchor tag. That is
enough to make them appear like other links on the website. They also
appear as clickable when using keyboard navigation.
@samueldr
Copy link
Member

👍 10/10 💯 the right way to handle this:

  • When something can be interacted with, use an element that can be natively interacted with.

(I was waiting for movement on #160 to propose the fix into what was thought to be eventually replacing the options page for UX things.)

@rbvermaa rbvermaa merged commit f49e01d into NixOS:master Oct 10, 2018
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

Successfully merging this pull request may close these issues.

None yet

3 participants