-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 color types #4602
Fix color types #4602
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
I don't think we should import from nested files , ie: Why not bring Colors type back from the theme utils, and export it from |
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.
Suggest on importing { Theme } from '../../../../util/theme/models'
and use the indexed access type Theme['colors']
This way we keep the @metamask/design-tokens
imports only on utils/theme
@wachunei beat me to it 😄
02574ac
to
c65fa01
Compare
…to fix/4601-fix-color-type
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
#4601
How it looks now
Screenshots/Recordings
If applicable, add screenshots and/or recordings to visualize the before and after of your change
Issue
Progresses #???
Checklist