Skip to content

Commit 0acfd7d

Browse files
committed
chore: refine video label style
1 parent 2ed1f9d commit 0acfd7d

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

packages/video-label/__tests__/android/__snapshots__/video-label.android.test.js.snap

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ exports[`Video Label test on android renders VideoLabel 1`] = `
4545
"fontSize": 12,
4646
"fontWeight": "400",
4747
"letterSpacing": 1.2,
48-
"lineHeight": 12,
48+
"lineHeight": 15,
4949
"margin": 0,
5050
"padding": 0,
5151
"position": "relative",
@@ -71,15 +71,15 @@ exports[`Video Label test on android renders VideoLabel 1`] = `
7171
"fontSize": 12,
7272
"fontWeight": "400",
7373
"letterSpacing": 1.2,
74-
"lineHeight": 12,
74+
"lineHeight": 15,
7575
"margin": 0,
7676
"padding": 0,
7777
"position": "relative",
7878
"top": 2,
7979
},
8080
Object {
8181
"color": "#008347",
82-
"marginLeft": 3,
82+
"marginLeft": 5,
8383
},
8484
]
8585
}
@@ -97,15 +97,15 @@ exports[`Video Label test on android renders VideoLabel 1`] = `
9797
"fontSize": 12,
9898
"fontWeight": "400",
9999
"letterSpacing": 1.2,
100-
"lineHeight": 12,
100+
"lineHeight": 15,
101101
"margin": 0,
102102
"padding": 0,
103103
"position": "relative",
104104
"top": 2,
105105
},
106106
Object {
107107
"color": "#008347",
108-
"paddingLeft": 3,
108+
"paddingLeft": 5,
109109
},
110110
]
111111
}

packages/video-label/__tests__/ios/__snapshots__/video-label.ios.test.js.snap

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ exports[`Video Label test on ios renders VideoLabel 1`] = `
4545
"fontSize": 12,
4646
"fontWeight": "400",
4747
"letterSpacing": 1.2,
48-
"lineHeight": 12,
48+
"lineHeight": 15,
4949
"margin": 0,
5050
"padding": 0,
5151
"position": "relative",
@@ -71,14 +71,14 @@ exports[`Video Label test on ios renders VideoLabel 1`] = `
7171
"fontSize": 12,
7272
"fontWeight": "400",
7373
"letterSpacing": 1.2,
74-
"lineHeight": 12,
74+
"lineHeight": 15,
7575
"margin": 0,
7676
"padding": 0,
7777
"position": "relative",
7878
"top": 2,
7979
},
8080
Object {
81-
"marginLeft": 3,
81+
"marginLeft": 5,
8282
},
8383
]
8484
}
@@ -96,20 +96,20 @@ exports[`Video Label test on ios renders VideoLabel 1`] = `
9696
"fontSize": 12,
9797
"fontWeight": "400",
9898
"letterSpacing": 1.2,
99-
"lineHeight": 12,
99+
"lineHeight": 15,
100100
"margin": 0,
101101
"padding": 0,
102102
"position": "relative",
103103
"top": 2,
104104
},
105105
Object {
106106
"color": "#008347",
107-
"paddingLeft": 3,
107+
"paddingLeft": 5,
108108
},
109109
]
110110
}
111111
>
112-
swimming
112+
SWIMMING
113113
</Text>
114114
</View>
115115
`;

packages/video-label/__tests__/web/__snapshots__/video-label.web.test.js.snap

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ exports[`Video Label test on web renders VideoLabel 1`] = `
3939
"fontSize": "12px",
4040
"fontWeight": "400",
4141
"letterSpacing": "1.2px",
42-
"lineHeight": "12px",
42+
"lineHeight": "15px",
4343
"marginLeft": "5px",
4444
"top": "2px",
4545
}
@@ -56,8 +56,8 @@ exports[`Video Label test on web renders VideoLabel 1`] = `
5656
"fontSize": "12px",
5757
"fontWeight": "400",
5858
"letterSpacing": "1.2px",
59-
"lineHeight": "12px",
60-
"marginLeft": "3px",
59+
"lineHeight": "15px",
60+
"marginLeft": "5px",
6161
"top": "2px",
6262
}
6363
}
@@ -74,13 +74,13 @@ exports[`Video Label test on web renders VideoLabel 1`] = `
7474
"fontSize": "12px",
7575
"fontWeight": "400",
7676
"letterSpacing": "1.2px",
77-
"lineHeight": "12px",
78-
"paddingLeft": "3px",
77+
"lineHeight": "15px",
78+
"paddingLeft": "5px",
7979
"top": "2px",
8080
}
8181
}
8282
>
83-
swimming
83+
SWIMMING
8484
</div>
8585
</div>
8686
`;

packages/video-label/style/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const styles = {
44
title: {
55
fontFamily: fonts.supporting,
66
fontSize: 12,
7-
lineHeight: 12,
7+
lineHeight: 15,
88
fontWeight: "400",
99
letterSpacing: 1.2,
1010
padding: 0,

packages/video-label/video-label.android.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ const VideoLabel = ({ title, color }) => (
2020
{beautifyTitle("VIDEO")}
2121
</Text>
2222
{title ? (
23-
<Text style={[styles.title, { color, marginLeft: 3 }]}>|</Text>
23+
<Text style={[styles.title, { color, marginLeft: 5 }]}>|</Text>
2424
) : null}
2525
{title ? (
26-
<Text style={[styles.title, { color, paddingLeft: 3 }]}>
26+
<Text style={[styles.title, { color, paddingLeft: 5 }]}>
2727
{beautifyTitle(title)}
2828
</Text>
2929
) : null}

packages/video-label/video-label.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ const VideoLabel = ({ title, color }) => (
88
<View style={{ flexDirection: "row", alignItems: "center" }}>
99
<IconVideo height={styles.title.fontSize} fillColor={color} />
1010
<Text style={[styles.title, { color, marginLeft: 5 }]}>VIDEO</Text>
11-
{title ? <Text style={[styles.title, { marginLeft: 3 }]}>|</Text> : null}
11+
{title ? <Text style={[styles.title, { marginLeft: 5 }]}>|</Text> : null}
1212
{title ? (
13-
<Text style={[styles.title, { color, paddingLeft: 3 }]}>{title}</Text>
13+
<Text style={[styles.title, { color, paddingLeft: 5 }]}>{title.toUpperCase()}</Text>
1414
) : null}
1515
</View>
1616
);

packages/video-label/video-label.stories.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ storiesOf("Primitives/VideoLabel", module)
1818
))
1919
.add("VideoLabel with title", () => (
2020
<VideoLabel
21-
title="SWIMMING"
21+
title="swimming"
2222
color={select(
2323
"Section",
2424
invert(colours.section),

0 commit comments

Comments
 (0)