Skip to content

Commit

Permalink
fix: upgrade color missing changes (callstack#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-pawel committed Jul 19, 2019
1 parent 3cc119b commit 05eb8a5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/Appbar/AppbarHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class AppbarHeader extends React.Component<Props> {
isDark =
backgroundColor === 'transparent'
? false
: !color(backgroundColor).light();
: !color(backgroundColor).isLight();
}
StatusBar.setBarStyle(isDark ? 'light-content' : 'dark-content');

Expand Down
18 changes: 12 additions & 6 deletions src/components/__tests__/Appbar/__snapshots__/Appbar.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ exports[`Appbar passes additional props to AppbarBackAction, AppbarContent and A
<View
accessibilityLabel="Back"
accessibilityRole="button"
accessibilityStates={Array []}
accessible={true}
hitSlop={
Object {
Expand All @@ -287,11 +288,13 @@ exports[`Appbar passes additional props to AppbarBackAction, AppbarContent and A
Array [
Object {
"alignItems": "center",
"borderRadius": 18,
"height": 36,
"justifyContent": "center",
"margin": 6,
"overflow": "visible",
"overflow": "hidden",
},
Object {
"borderRadius": 18,
"height": 36,
"width": 36,
},
undefined,
Expand Down Expand Up @@ -435,6 +438,7 @@ exports[`Appbar passes additional props to AppbarBackAction, AppbarContent and A
</View>
<View
accessibilityRole="button"
accessibilityStates={Array []}
accessible={true}
hitSlop={
Object {
Expand All @@ -459,11 +463,13 @@ exports[`Appbar passes additional props to AppbarBackAction, AppbarContent and A
Array [
Object {
"alignItems": "center",
"borderRadius": 18,
"height": 36,
"justifyContent": "center",
"margin": 6,
"overflow": "visible",
"overflow": "hidden",
},
Object {
"borderRadius": 18,
"height": 36,
"width": 36,
},
undefined,
Expand Down
1 change: 1 addition & 0 deletions src/components/__tests__/__snapshots__/Menu.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ exports[`renders menu with content styles 1`] = `
>
<View
accessibilityRole="button"
accessibilityStates={Array []}
accessible={true}
isTVSelectable={true}
onResponderGrant={[Function]}
Expand Down

0 comments on commit 05eb8a5

Please sign in to comment.