-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
(GitHub Files Filter) make the toggle buttons change background color when clicked, not when mouseaway (especially when using 'GitHub Dark' userstyle) #46
Comments
Hi @darkred! Yeah, the hover and selected background colors for those plain buttons are too similar. Even with GitHub-Dark turned off, it's subtle. I was toying with the idea of making the selected button change the font somehow. I tried bold, but didn't like it much, then I made the selected button show small caps. .gff-filter .btn.selected {
font-variant: small-caps;
} What do you think?... I'll work on GitHub-Dark's hover style for those buttons and make it have better contrast as well. I'll be out of town this weekend. I'll look forward to your ideas. |
I like a lot your idea changing capitalization as you toggle the filters 👍 In addition to the above, here are my suggestions (always in my humble opinion!) :
|
Hi @darkred! I'm back! Good ideas!...
|
Awesome, @Mottie !!! Thank you! Just one thing: Could you please make it so that it only appears during the mouse hover on the relevant button? |
GitHub will show a tooltip when you have the element focused. |
OK, so, if there's no way to programmatically bypass this (I mean to "hide" every such tooltip after moving the mouse away from them -- that's the only thing I could think to solve this) |
Yeah, but I wouldn't want to programmically remove the focus because of people that use keyboard navigation to navigate the page... press the Tab to see what I mean. I'll apply the hover styling to the button while focused as well... |
You're absolute right 👍
Great! Thanks again for everything 👍 |
Regarding the 'GitHub Files' Filter script:
currently when clicking a toggle button, its background color changes after moving the mouse away, not when clicked.
I find it confusing, and difficult to tell whether I've pressed the button or depressed it, especially in conjunction with the 'GitHub Dark' userstyle
I believe it would be more practical if its background color was changed when clicked, i.e. instantly.
What's your opinion, @Mottie ?
Current screenshot:
The text was updated successfully, but these errors were encountered: