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

fix: unreadable text in night mode #51788

Merged
merged 5 commits into from
Oct 6, 2023

Conversation

FarisKarim
Copy link
Contributor

@FarisKarim FarisKarim commented Oct 3, 2023

Checklist:

Closes #51785

New look (--tertiary-background):

Screenshot_2023-10-05_at_11 36 43_AM
Screenshot_2023-10-05_at_11 36 57_AM

@github-actions github-actions bot added the scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. label Oct 3, 2023
@ghost
Copy link

ghost commented Oct 3, 2023

👀 Review this PR in a CodeSee Review Map

View the CodeSee Map of this change

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@naomi-lgbt
Copy link
Member

Thanks for your interest in contributing.

The linked issue has not been triaged or opened for contribution yet.

@naomi-lgbt naomi-lgbt added the status: blocked Is waiting on followup from either the Opening Poster of the issue or PR, or a maintainer. label Oct 3, 2023
@FarisKarim FarisKarim requested a review from a team as a code owner October 3, 2023 19:25
@github-actions github-actions bot added platform: learn UI side of the client application that needs familiarity with React, Gatsby etc. and removed scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. labels Oct 3, 2023
@github-actions github-actions bot added scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. and removed platform: learn UI side of the client application that needs familiarity with React, Gatsby etc. labels Oct 3, 2023
@Sboonny Sboonny added status: waiting update To be applied to PR if a maintainer/reviewer has left a feedback and follow up is needed from OP and removed status: blocked Is waiting on followup from either the Opening Poster of the issue or PR, or a maintainer. labels Oct 4, 2023
@Sboonny
Copy link
Member

Sboonny commented Oct 4, 2023

@FarisKarim, the issue has been triaged, if you need help head to our discord.


Can you sync this branch with main, a commit that fix the failing test are in place there.

@lasjorg
Copy link
Contributor

lasjorg commented Oct 4, 2023

We still want the striped style right? Not sure if we want it to be the default or what?

client/src/components/layouts/global.css

.challenge-instructions table tr:nth-of-type(odd) {
  color: var(--secondary-color);
  background-color: var(--tertiary-background);
}

@FarisKarim
Copy link
Contributor Author

FarisKarim commented Oct 5, 2023

^^^ Was also wondering that, are the above styles fine or did we want different shades depending on light and night mode. Think someone mentioned background-quaternary for night mode and background-tertiary for light?

@naomi-lgbt
Copy link
Member

We could try --tertiary-background for both. It needs to meet WCAG contrast first and foremost, and look good in the process. 😁

@github-actions github-actions bot added the platform: learn UI side of the client application that needs familiarity with React, Gatsby etc. label Oct 5, 2023
@lasjorg
Copy link
Contributor

lasjorg commented Oct 5, 2023

The color contrast looks good as far as I can tell (Axe DevTools also do not complain).

Copy link
Contributor

@WilliamSpanfelner WilliamSpanfelner left a comment

Choose a reason for hiding this comment

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

Just applied this rule locally. It also fixes a similar table issue at: Cash Register project. This stands to reason as the amendment is to global.css which intuitively, should apply to all tables sharing this styling. Nice work.

Copy link
Member

@Sboonny Sboonny left a comment

Choose a reason for hiding this comment

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

✨ 🎉 AWESOME! 🎉 ✨

Hi @FarisKarim, thanks for this pull request and for contributing to the code-base for the first time. We are looking forward to more contributions from you in the future.

Cheers & happy contributing!

@Sboonny Sboonny changed the title unreadable text in night mode fix fix: unreadable text in night mode fix Oct 6, 2023
@Sboonny Sboonny changed the title fix: unreadable text in night mode fix fix: unreadable text in night mode Oct 6, 2023
@Sboonny Sboonny added status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. and removed status: waiting update To be applied to PR if a maintainer/reviewer has left a feedback and follow up is needed from OP labels Oct 6, 2023
Copy link
Contributor

@lasjorg lasjorg left a comment

Choose a reason for hiding this comment

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

LGTM

@lasjorg lasjorg merged commit fac5c52 into freeCodeCamp:main Oct 6, 2023
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: learn UI side of the client application that needs familiarity with React, Gatsby etc. scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unreadable text in a table in Nigth Mode
5 participants