-
Notifications
You must be signed in to change notification settings - Fork 56
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
fix(dark variant): some text colors were light gray instead of white #2263
Conversation
✅ Deploy Preview for boosted ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
1d26d2d
to
771d0a2
Compare
Remaining problem I have seen so far (some may not be directly related to the actual PR):
|
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. |
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.
Looks ok to me 👍
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.
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.
Description
This PR fixes some rendering issues observed for our dark variants where the text color is
rgb(238, 238, 238)
and should bewhite
.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.
$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
Live previews
Here's a list of renderings that are fixed/modified. Please also review all dark variants for non-regression testing.