-
Notifications
You must be signed in to change notification settings - Fork 30
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
refactor(components-native): surface--element instead of background as background color for non surface/container components #2231
base: master
Are you sure you want to change the base?
Conversation
Deploying atlantis with Cloudflare Pages
|
…9-do-it-components-native
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.
Same as web, mostly good with a few small changes!
@@ -29,6 +29,6 @@ export const styles = StyleSheet.create({ | |||
padding: tokens["space-smaller"], | |||
}, | |||
activeDismissIcon: { | |||
backgroundColor: tokens["color-surface--background"], | |||
backgroundColor: tokens["color-interactive--background"], |
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 don't actually recall why we need a different background color here, but that's probably a question for another day
@@ -14,7 +14,7 @@ export const styles = StyleSheet.create({ | |||
height: BAR_HEIGHT, | |||
}, | |||
lightTheme: { | |||
backgroundColor: tokens["color-surface--background"], | |||
backgroundColor: tokens["color-interactive--background"], |
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.
backgroundColor: tokens["color-interactive--background"], | |
backgroundColor: tokens["color-surface--background"], |
This is the toolbar above the native keyboard for things like the "Done" button, this isn't a "UI element" in the sense of the other components here
@@ -7,7 +7,7 @@ export const styles = StyleSheet.create({ | |||
justifyContent: "space-between", | |||
alignItems: "center", | |||
paddingHorizontal: tokens["space-small"], | |||
backgroundColor: tokens["color-surface--background"], | |||
backgroundColor: tokens["color-interactive--background"], |
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.
backgroundColor: tokens["color-interactive--background"], | |
backgroundColor: tokens["color-surface--background"], |
Fairly sure this is related to the same element as the previous file
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.
And that's the lot of them! Good to go @edison-cy-yang
Depends on #2227
Motivations
surface--background
have poor contrast on some surfacesChanges
surface--background
now have better visibility on all surfacesChip
in components-native will need a followup task to set background color for inactive state tosurface--element
instead of using theinactiveBackgroundColor
prop.Added
Changed
color-surface--background
to usecolor-surface--element
insteadDeprecated
Removed
Fixed
Security
Testing
Changes can be
tested via Pre-release
In Atlantis we use Github's built in pull request reviews.