Skip to content

Commit e1e6159

Browse files
committed
adjusting style
1 parent b9b522b commit e1e6159

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/components/featureHighlight/index.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import Button from '../button';
99
import {Colors} from '../../style';
1010
import {Constants} from '../../helpers';
1111
import {HighlighterOverlayView} from '../../nativeComponents';
12+
import Typography from '../../style/typography';
1213

1314
const defaultOverlayColor = Colors.rgba(Colors.black, 0.82);
1415
const defaultTextColor = Colors.white;
1516
const defaultStrokeColor = Colors.rgba(Colors.white, 0.12);
1617
const defaultStrokeWidth = 12;
17-
const contentViewPadding = Constants.isIOS ? 35 : 32;
18+
const contentViewPadding = 32;
1819
const contentViewRightMargin = Constants.isIOS ? 45 : 46;
19-
const titleBottomMargin = Constants.isIOS ? 15 : 12;
20-
const messageBottomMargin = Constants.isIOS ? 30 : 24;
21-
const titleLineHeight = Constants.isAndroid ? 26 : 24;
20+
const titleBottomMargin = 12;
21+
const messageBottomMargin = 24;
2222
const messageLineHeight = 22;
2323
const defaultButtonLabel = 'Got it';
2424
const contentViewHeight = Constants.isAndroid ? 268 : 282;
@@ -242,7 +242,8 @@ class FeatureHighlight extends BaseComponent {
242242
)}
243243
<Button
244244
label={defaultButtonLabel}
245-
size="small"
245+
size="medium"
246+
labelStyle={{...Typography.text80, fontWeight: '700'}}
246247
outline
247248
outlineColor={color}
248249
activeBackgroundColor={Colors.rgba(color, 0.3)}
@@ -289,13 +290,14 @@ const styles = StyleSheet.create({
289290
alignItems: 'flex-start',
290291
},
291292
title: {
292-
fontWeight: '500',
293293
marginBottom: titleBottomMargin,
294-
lineHeight: titleLineHeight,
294+
lineHeight: Typography.text60.lineHeight,
295+
fontWeight: '900',
295296
},
296297
message: {
297298
marginBottom: messageBottomMargin,
298299
lineHeight: messageLineHeight,
300+
...Typography.text70,
299301
},
300302
touchableOverlay: {
301303
...StyleSheet.absoluteFillObject,

0 commit comments

Comments
 (0)