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

Add darker background to selected options in SelectNext #1605

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

acelaya
Copy link
Contributor

@acelaya acelaya commented Jul 5, 2024

This PR tries to improve how selected options are highlighted in SelectNext, by adding a light grey background that makes them more prominent.

Additionally, it removes color transitions, which mainly affect the background color applied on hover, which feels more responsive without the transition.

select-bg-selected-no-transition-2024-07-05_14.14.04.mp4

@acelaya acelaya requested a review from robertknight July 5, 2024 12:14
{
'text-grey-4': disabled,
'cursor-pointer focus-visible-ring hover:bg-grey-1': !disabled,
'bg-grey-1 hover:bg-grey-2': selected,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selected options will have the same background we apply on hover for non-selected ones. Additionally, they will have a slightly darker background on hover.

Copy link
Member

@robertknight robertknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I much prefer this 👍

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.

2 participants