Skip to content

Commit 6ec45c3

Browse files
committed
chore: refine video label style
1 parent 2ed1f9d commit 6ec45c3

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ exports[`Video Label test on android renders VideoLabel 1`] = `
7979
},
8080
Object {
8181
"color": "#008347",
82-
"marginLeft": 3,
82+
"marginLeft": 5,
8383
},
8484
]
8585
}
@@ -105,7 +105,7 @@ exports[`Video Label test on android renders VideoLabel 1`] = `
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

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ exports[`Video Label test on ios renders VideoLabel 1`] = `
7878
"top": 2,
7979
},
8080
Object {
81-
"marginLeft": 3,
81+
"marginLeft": 5,
8282
},
8383
]
8484
}
@@ -104,12 +104,12 @@ exports[`Video Label test on ios renders VideoLabel 1`] = `
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

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ exports[`Video Label test on web renders VideoLabel 1`] = `
5757
"fontWeight": "400",
5858
"letterSpacing": "1.2px",
5959
"lineHeight": "12px",
60-
"marginLeft": "3px",
60+
"marginLeft": "5px",
6161
"top": "2px",
6262
}
6363
}
@@ -75,12 +75,12 @@ exports[`Video Label test on web renders VideoLabel 1`] = `
7575
"fontWeight": "400",
7676
"letterSpacing": "1.2px",
7777
"lineHeight": "12px",
78-
"paddingLeft": "3px",
78+
"paddingLeft": "5px",
7979
"top": "2px",
8080
}
8181
}
8282
>
83-
swimming
83+
SWIMMING
8484
</div>
8585
</div>
8686
`;

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)