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(dark variant): some text colors were light gray instead of white #2263

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

julien-deramond
Copy link
Member

@julien-deramond julien-deramond commented Sep 21, 2023

Description

This PR fixes some rendering issues observed for our dark variants where the text color is rgb(238, 238, 238) and should be white.

It has been included with the dark mode coming from Bootstrap where there's a switch between $body-color and $body-color-dark to set --bs-body-color. The problem is that $body-color-dark was set to $gray-300 instead of $white.

We could have used --bs-emphasis-color to fix this issue in all impacted components, but I think this fix is easier to maintain has in the dark mode, we will use a light gray default text color instead of white.

Here's a list of identified components in dark variant having the wrong text color.

⚠️ Please double-check all usages in the framework of $body-color and --bs-body-color to be sure to not introduce another regression.

Alerts

Dark variant text color is rgb(238, 238, 238) instead of white (the icon has already the right color).

Footer

In our documentation, the text color of "This documentation is an adaptation made by Orange. Ori[...]" is rgb(238, 238, 238) instead of white.

Cards

For cards, it's not seeable in the documentation directly since we prefer to use .card-* classes, and that dark examples force a .text-white. I don't think a fix is needed right now since it is an edge case and that we will refactor this usage for the dark mode.

Tags

Dark variant text color is rgb(238, 238, 238) instead of white (the icon has already the right color).

Types of change

  • Bug fix (non-breaking which fixes an issue)

Live previews

Here's a list of renderings that are fixed/modified. Please also review all dark variants for non-regression testing.

@netlify
Copy link

netlify bot commented Sep 21, 2023

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 771d0a2
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/650c215ae5b9120008ffafb9
😎 Deploy Preview https://deploy-preview-2263--boosted.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@julien-deramond julien-deramond force-pushed the main-jd-fix-text-colors-in-dark-variants branch from 1d26d2d to 771d0a2 Compare September 21, 2023 10:56
@julien-deramond julien-deramond marked this pull request as ready for review September 21, 2023 11:13
@MewenLeHo
Copy link
Contributor

MewenLeHo commented Sep 21, 2023

Remaining problem I have seen so far (some may not be directly related to the actual PR):

@julien-deramond
Copy link
Member Author

Thanks, I'll check the list in your comment. FYI dark mode is not taken into account in this PR. The idea is to have the same rendering as it was in v5.2x and without regression in light mode only.

@MewenLeHo
Copy link
Contributor

Thanks, I'll check the list in your comment. FYI dark mode is not taken into account in this PR. The idea is to have the same rendering as it was in v5.2x and without regression in light mode only.

That's what I understood and it seems ok.
I just wanted to list all possible issues I encountered while checking the rendering because I wanted to keep a trace of it before leaving ;)

@MewenLeHo MewenLeHo self-requested a review September 21, 2023 14:05
Copy link
Contributor

@MewenLeHo MewenLeHo left a comment

Choose a reason for hiding this comment

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

Looks ok to me 👍

Copy link
Member

@louismaximepiton louismaximepiton left a comment

Choose a reason for hiding this comment

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

It looks fine. It has many impacts on dark mode but we don't care in this PR so it's fine to me.
On dark variants I couldn't find any regression.

<div class="bg-dark">
  <p class="text-body">fdskfjdsi</p>
</div>

I couldn't find a way to repriduce white text on dark bg. I'd like to know where you saw this.
But anyway, I think the impacts are fine to me.

@julien-deramond julien-deramond merged commit e6a884a into main Sep 22, 2023
17 checks passed
@julien-deramond julien-deramond deleted the main-jd-fix-text-colors-in-dark-variants branch September 22, 2023 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants