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

Change settings sidebar colors #9084

Closed
wants to merge 1 commit into from

Conversation

gtsiolis
Copy link
Contributor

@gtsiolis gtsiolis commented Apr 1, 2022

Description

Following the changes in #9002, this will change settings sidebar colors. πŸ–οΈ

How to test

  1. Go to /account.
  2. Check that the active menu is color accessible when using the dark theme. πŸŒ”

@gtsiolis gtsiolis requested a review from a team April 1, 2022 21:10
@roboquat
Copy link
Contributor

roboquat commented Apr 1, 2022

@gtsiolis: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@jankeromnes
Copy link
Contributor

jankeromnes commented Apr 4, 2022

Thanks! Taking a look πŸ‘€

Copy link
Contributor

@jankeromnes jankeromnes left a comment

Choose a reason for hiding this comment

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

Many thanks @gtsiolis for watching over accessibility, colors, and the dark theme! πŸ–€ ✨

While reviewing this Pull Request, I wonder whether this might be a duplicate of #9052 (where I noticed that a text color class of the active element was accidentally missing the dark: prefix). If so, then the problem might already be fixed on the main branch (not deployed to production yet):

@@ -31,7 +31,7 @@ export function PageWithSubMenu(p: PageWithSubMenuProps) {
if (e.link.some((l) => l === location.pathname)) {
classes += " bg-gray-300 text-gray-800 dark:bg-gray-800 dark:text-gray-50";
} else {
classes += " hover:bg-gray-100 dark:hover:bg-gray-800";
classes += " hover:bg-gray-100 dark:hover:bg-gray-800 dark:text-gray-500";
Copy link
Contributor

@jankeromnes jankeromnes Apr 4, 2022

Choose a reason for hiding this comment

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

While attempting to test this change, I saw no difference between:

I believe the reason is that, when you look at the combined classes, text is already gray-500 (see text-gray-500 in the common classes on line 28), so adding dark:text-gray-500 to these classes makes no difference.

@gtsiolis
Copy link
Contributor Author

gtsiolis commented Apr 4, 2022

@jankeromnes You're right, this is a duplicate of #9052 which I missed while being offline, see relevant discussion (internal). The issue seems to be already resolved in staging. Sorry for wasting your time and let me close this. 🍡

@gtsiolis gtsiolis closed this Apr 4, 2022
@gtsiolis gtsiolis deleted the gt/change-settings-sidebar-color branch May 5, 2022 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants