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
Change color for primary element on hover #39317
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please adjust generation script
'--color-primary-element-hover' => $this->util->mix($colorPrimaryElement, $colorMainBackground, 60), |
@skjnldsv could you please help me how should this mix looks like? |
I can't, i have no idea how your hex colour got chosen. Usage is as follow
You have to pick the right amount to get as close as your |
It is the slightly darker and bluer version of the previous hover color, but there was no logic per se. I can try and find another close color, how does the mix work? |
Using You can try this here: https://play.phpsandbox.io/mexitek/phpcolors <?php
use Mexitek\PHPColors\Color;
$color = new Color('#006AA3');
$background = new Color('#ffffff');
echo '#' . $color->mix($background, 65) . PHP_EOL; |
Super nice! Thank you @skjnldsv :) Unfortunately the color code you suggested does not have enough contrast against the main background color. However, using |
This is not a variable used for text btw, so contrast rules are a bit more flexible for big elements iirc :) EDIT: just saw you actually used the color as background and compared with text, my bad! All good!! 🙇 |
After several tryings just saw you discussion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 :)
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
f30eebc
to
ddb808e
Compare
Summary
Fixes color for primary element on hover state nextcloud-libraries/nextcloud-vue#4193 (comment)
Checklist