-
Notifications
You must be signed in to change notification settings - Fork 18
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
Replace accent color with grey for button hover background in Paella #1031
Conversation
We had problems with this as the automatically derived accent colors (dark and light version) look very different hue-wise. We thought about just making both configurable but I got an idea that I like better, I think: don't use the accent color for the hover effect. Instead, a grey color is used which makes hovering less "flashy", which is good IMO. The YouTube player for example only has very subtle hover effects. It does have a changing cursor, which Paella should get as well, but that's a different issue.
I like this solution. Thx! |
I'm not 100% sure what your asking:
But ok, good to hear you like the solution. Then I'm just waiting for a code review by Ole (currently sick, unfortunately). |
Bummer. Is there a ticket for this already? |
No, that is by design. We do need multiple brightness versions of the primary color. For example, the text color changes when hovering a main navigation item or a link. But there are many more examples of this and this was the case since the very beginning already. Needing multiple brightness levels of the primary color is not inherently bad. The problem with the Paella colors was that we created versions with two very different brightnesses (i.e. one dark, one bright) that were used right next to one another. |
Is this related to what is being described at https://ethz.ch/staffnet/en/service/communication/corporate-design/colours.html under "Using different shades"? |
Exactly. Your CI has different shades for every color for the same reason that Tobira creates a few different shades of the primary color: just having one shade is just too limiting for UI design. |
Great. So for https://video.test.tobira.ethz.ch/ to match the ETH CD, we simply select a specific shade for each element using color? |
Tobira will create the shades automatically. You only need to configure on shade (in a specific brightness range). Tobira does the rest for you. |
Great. So if we configure #215CAF, it will use #4D7DBF, #7A9DCF, #A6BEDF, #D3DEEF, #E9EFF7, and #08407E accordingly / where needed? And what about Paella Player? |
Not exactly those brightness values/shades but still shades with the exact same color tone. And the Paella player in Tobira also uses that. Let's maybe talk about this in person on Wednesday, if you have further questions. |
Oh and I do like the hover solution as well, nice! |
According to the conversation Lukas and I had with Valencia last week, this should become an issue here, so that "Tobira devs (Ole and myself) then figure out where the problem originates." Cf. #1039 |
Correct, thanks for opening the issue! |
We had problems with this as the automatically derived accent colors (dark and light version) look very different hue-wise. We thought about just making both configurable but I got an idea that I like better, I think: don't use the accent color for the hover effect. Instead, a grey color is used which makes hovering less "flashy", which is good IMO. The YouTube player for example only has very subtle hover effects. It does have a changing cursor, which Paella should get as well, but that's a different issue.
So yeah, I propose this as it's a really simple solution and I think it even looks better!
Opinions @oas777 @dagraf ?
Here are screenshots with a few different primary colors:
ETH Blau
![image](https://private-user-images.githubusercontent.com/7419664/289552205-6dacc2ef-7c3b-4c6e-9154-121866a3eb42.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTA2MjAsIm5iZiI6MTczOTY5MDMyMCwicGF0aCI6Ii83NDE5NjY0LzI4OTU1MjIwNS02ZGFjYzJlZi03YzNiLTRjNmUtOTE1NC0xMjE4NjZhM2ViNDIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDcxODQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDMwNGZlMmJiYjA2Zjk3MTJiYzRlODFhMWQ0YzdmNWEzMDkxY2JhZDNiY2FhMjU5N2NmOTJhMjMzNDM3NWJkMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.uhNhcdenQ16h3ktlm54Ks6XHBxrW2lCOX0qfD_ZCxYY)
![image](https://private-user-images.githubusercontent.com/7419664/289552593-2a5c09b9-c66f-4fd2-8a35-ea3ed3453eed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTA2MjAsIm5iZiI6MTczOTY5MDMyMCwicGF0aCI6Ii83NDE5NjY0LzI4OTU1MjU5My0yYTVjMDliOS1jNjZmLTRmZDItOGEzNS1lYTNlZDM0NTNlZWQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDcxODQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Yzk2ZTc2OGU2MWIwNTQwMWE0NThlYjdiYzRlYjllYzc3ZTliMGFjMTcwZDE3YjJkZDNlMjA3Y2NiZGI0MDEyYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.pkioPB9dHKQziVxtSS5vyvF2yyUl1l1xGlIFAYf4Nb4)
ETH Grün
![image](https://private-user-images.githubusercontent.com/7419664/289552803-d111d6f7-0d04-493b-aea3-39246f864757.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTA2MjAsIm5iZiI6MTczOTY5MDMyMCwicGF0aCI6Ii83NDE5NjY0LzI4OTU1MjgwMy1kMTExZDZmNy0wZDA0LTQ5M2ItYWVhMy0zOTI0NmY4NjQ3NTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDcxODQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGYwZGRjMTY5YzY5ZjhiMjEwN2Q0MGI1OGZjNzY3MjM0N2MxNjQ3NmM1Mjk4ZGRlZWQxYzllYTgwMzQwYzhhOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ._2VlRw2wfh1hL6G4dq1emKD80nUf3jKYKrT5OSQPvWA)
![image](https://private-user-images.githubusercontent.com/7419664/289552741-b42901e0-4fb3-41ee-ba65-c95501512462.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTA2MjAsIm5iZiI6MTczOTY5MDMyMCwicGF0aCI6Ii83NDE5NjY0LzI4OTU1Mjc0MS1iNDI5MDFlMC00ZmIzLTQxZWUtYmE2NS1jOTU1MDE1MTI0NjIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDcxODQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTFlNWVjMjU1ODc2OTZkNjNjZWZlYjQ3MDhlNTczZjdkNDJlOWI3OTE4ODQzNzc2YjZiZDZmMGJiMjNjN2UyYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.VaEgKDNmh2turQl1Hv1uWwZpz96FnrYFUbZHj_b3Uns)
ETH Rot
![image](https://private-user-images.githubusercontent.com/7419664/289552997-01261ec0-7715-4dd9-b955-150ce6f0bd19.png?jwt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tQNxCPTdCl3Xd-zwRGTE)
![image](https://private-user-images.githubusercontent.com/7419664/289553336-74aacd76-386b-43f4-b0df-2ef291fa3984.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTA2MjAsIm5iZiI6MTczOTY5MDMyMCwicGF0aCI6Ii83NDE5NjY0LzI4OTU1MzMzNi03NGFhY2Q3Ni0zODZiLTQzZjQtYjBkZi0yZWYyOTFmYTM5ODQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDcxODQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9M2I1NmMzMDc4Zjc2NThhYTMwZWJhNjczNDgzMWFkY2RlNWY1NWY0NTAzMzhhMTc1NDMzYzE1NGQ5MjQxNjYyOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.vk5HZC-62vGxuSzRngTY_CNBrHsg-XLalCMyP9lIUOY)
Bern Blue
![image](https://private-user-images.githubusercontent.com/7419664/289553888-de559ec1-e548-47a1-a5dd-1ad5b55fd359.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTA2MjAsIm5iZiI6MTczOTY5MDMyMCwicGF0aCI6Ii83NDE5NjY0LzI4OTU1Mzg4OC1kZTU1OWVjMS1lNTQ4LTQ3YTEtYTVkZC0x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