-
Notifications
You must be signed in to change notification settings - Fork 6.8k
docs(stepper): Make CDK stepper example accessible in dark mode. #20013
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
docs(stepper): Make CDK stepper example accessible in dark mode. #20013
Conversation
Do we have flaky tests? |
It seems we have a flaky test, it passed after a fake commit. |
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.
A couple more notes:
- The commit message should be prefixed with
docs(stepper)
instead ofstepper(guide)
. - If you rebase against the latest master the CI flakes that you saw earlier should be gone.
padding: 10px; | ||
margin: 10px; | ||
color: inherit; |
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.
I think all of these color: inherit
uses are redundant. Doesn't color
default to inherit
?
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.
Fixed, kept color: inherit for nav buttons since those were shown in black for dark mode.
} | ||
|
||
.example-step.example-active { | ||
color: blue; |
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.
Maybe we can pick a color that stands out both on light and dark backgrounds? I believe the point of this example is to make it stand out to illustrate a point, rather than be pretty.
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.
Yes right, we discussed that point but there is an issue with maintaining text contrast for both light and dark mode. So instead of using a neutral color, we ended using the text colors.
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.
Alright, the font-weight
that you replaced it with should be fine as well.
9ac10e4
to
33f6271
Compare
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.
LGTM, but the commit message still needs to be fixed up to say docs(stepper)
.
Removed hard-coded colors and replaced with inherit colors. Used font-weight to show active step. Fixes angular#17152
It is still required for nav buttons, since those show in the black.
33f6271
to
2aeac3e
Compare
@crisbeto , fixed the commit message, earlier I had just modified PR title my bad. |
I think you still need to change your PR title, because that's what will be used when the caretaker squashes the commits. |
Title updated. |
) * docs(stepper): Make CDK stepper example accessible in dark mode. Removed hard-coded colors and replaced with inherit colors. Used font-weight to show active step. Fixes #17152 * Changing order of styles. * Triggering CircleCI build again. * Removing color inherit, since it is not required. It is still required for nav buttons, since those show in the black. (cherry picked from commit 5f76afa)
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.
Thank you for making these changes!
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Removed hard-coded colors and replaced with inherit colors.
Used font-weight to show active step.
Fixes #17152