Skip to content

Commit

Permalink
chore: refine video label style
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhedonia committed Mar 7, 2018
1 parent 2ed1f9d commit 6ec45c3
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ exports[`Video Label test on android renders VideoLabel 1`] = `
},
Object {
"color": "#008347",
"marginLeft": 3,
"marginLeft": 5,
},
]
}
Expand All @@ -105,7 +105,7 @@ exports[`Video Label test on android renders VideoLabel 1`] = `
},
Object {
"color": "#008347",
"paddingLeft": 3,
"paddingLeft": 5,
},
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ exports[`Video Label test on ios renders VideoLabel 1`] = `
"top": 2,
},
Object {
"marginLeft": 3,
"marginLeft": 5,
},
]
}
Expand All @@ -104,12 +104,12 @@ exports[`Video Label test on ios renders VideoLabel 1`] = `
},
Object {
"color": "#008347",
"paddingLeft": 3,
"paddingLeft": 5,
},
]
}
>
swimming
SWIMMING
</Text>
</View>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ exports[`Video Label test on web renders VideoLabel 1`] = `
"fontWeight": "400",
"letterSpacing": "1.2px",
"lineHeight": "12px",
"marginLeft": "3px",
"marginLeft": "5px",
"top": "2px",
}
}
Expand All @@ -75,12 +75,12 @@ exports[`Video Label test on web renders VideoLabel 1`] = `
"fontWeight": "400",
"letterSpacing": "1.2px",
"lineHeight": "12px",
"paddingLeft": "3px",
"paddingLeft": "5px",
"top": "2px",
}
}
>
swimming
SWIMMING
</div>
</div>
`;
4 changes: 2 additions & 2 deletions packages/video-label/video-label.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const VideoLabel = ({ title, color }) => (
{beautifyTitle("VIDEO")}
</Text>
{title ? (
<Text style={[styles.title, { color, marginLeft: 3 }]}>|</Text>
<Text style={[styles.title, { color, marginLeft: 5 }]}>|</Text>
) : null}
{title ? (
<Text style={[styles.title, { color, paddingLeft: 3 }]}>
<Text style={[styles.title, { color, paddingLeft: 5 }]}>
{beautifyTitle(title)}
</Text>
) : null}
Expand Down
4 changes: 2 additions & 2 deletions packages/video-label/video-label.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const VideoLabel = ({ title, color }) => (
<View style={{ flexDirection: "row", alignItems: "center" }}>
<IconVideo height={styles.title.fontSize} fillColor={color} />
<Text style={[styles.title, { color, marginLeft: 5 }]}>VIDEO</Text>
{title ? <Text style={[styles.title, { marginLeft: 3 }]}>|</Text> : null}
{title ? <Text style={[styles.title, { marginLeft: 5 }]}>|</Text> : null}
{title ? (
<Text style={[styles.title, { color, paddingLeft: 3 }]}>{title}</Text>
<Text style={[styles.title, { color, paddingLeft: 5 }]}>{title.toUpperCase()}</Text>
) : null}
</View>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/video-label/video-label.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ storiesOf("Primitives/VideoLabel", module)
))
.add("VideoLabel with title", () => (
<VideoLabel
title="SWIMMING"
title="swimming"
color={select(
"Section",
invert(colours.section),
Expand Down

0 comments on commit 6ec45c3

Please sign in to comment.