-
Notifications
You must be signed in to change notification settings - Fork 313
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: missing elevated card shadow on dark mode #6185
Conversation
🦋 Changeset detectedLatest commit: f3f4a52 The changes in this PR will be included in the next version bump. This PR includes changesets to release 14 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
shadow: { | ||
primary: { value: 'hsla(100, 100%, 100%, 0.25)' }, | ||
secondary: { value: 'hsla(100, 100%, 100%, 0.15)' }, | ||
tertiary: { value: 'hsla(100, 100%, 100%, 0.05)' }, |
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.
Nit: Is this tertiary value being used anywhere besides the slider? The alpha of 0.05 makes sense to match the light mode counterpart, but it's so subtle in dark mode that I can't even see it. Would it make sense to consider increasing the tertiary alpha value for dark mode?
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 good to me. Tertiary shadow is a bit hard for me to see on dark mode, but the slider already has a very subtle shadow to begin with, so could just be my opinion. Not blocking
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!
Description of changes
This change fixes missing box shadows on the elevated variation of the
Card
component. This is because dark mode shadow colors are not defined so it defaults to the light mode shadows, which are extremely difficult to spot in dark mode.This change also visually changes/affects the dark mode versions of other components that use box shadows in general:
Authenticator
,Menu
, andSlider Field
.Issue #, if available
Fixes #5893.
Description of how you validated changes
Checklist
yarn test
passes and tests are updated/addeddocs
,e2e
,examples
, or other private packages.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.