Skip to content

Commit 0121240

Browse files
chore: Fix crashing Semibold font weight in text variants
1 parent 908eefe commit 0121240

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

src/design-system/config/textVariants.ts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ export const textVariants: {
5050
XsBold: { fontWeight: 'Bold', fontSize: 'xs' },
5151
XsMedium: { fontWeight: 'Medium', fontSize: 'xs' },
5252
XsRegular: { fontWeight: 'Regular', fontSize: 'xs' },
53-
XsSemibold: { fontWeight: 'Semibold', fontSize: 'xs' },
53+
// FIXME: Investigate why Semibold is crashing
54+
XsSemibold: { fontWeight: 'Bold', fontSize: 'xs' },
5455
}
5556

5657
export type DisplayVariant =
@@ -85,25 +86,33 @@ export const displayVariants: {
8586
LgBold: { fontWeight: 'Bold', fontSize: 'lg' },
8687
LgMedium: { fontWeight: 'Medium', fontSize: 'lg' },
8788
LgRegular: { fontWeight: 'Regular', fontSize: 'lg' },
88-
LgSemibold: { fontWeight: 'Semibold', fontSize: 'lg' },
89+
// FIXME: Investigate why Semibold is crashing
90+
// Semibold is crashing for some reason
91+
// https://github.com/expo/expo/issues/29030
92+
LgSemibold: { fontWeight: 'Bold', fontSize: 'lg' },
8993
MdBold: { fontWeight: 'Bold', fontSize: 'md' },
9094
MdMedium: { fontWeight: 'Medium', fontSize: 'md' },
9195
MdRegular: { fontWeight: 'Regular', fontSize: 'md' },
92-
MdSemibold: { fontWeight: 'Semibold', fontSize: 'md' },
96+
// FIXME: Investigate why Semibold is crashing
97+
MdSemibold: { fontWeight: 'Bold', fontSize: 'md' },
9398
SmBold: { fontWeight: 'Bold', fontSize: 'sm' },
9499
SmMedium: { fontWeight: 'Medium', fontSize: 'sm' },
95100
SmRegular: { fontWeight: 'Regular', fontSize: 'sm' },
96-
SmSemibold: { fontWeight: 'Semibold', fontSize: 'sm' },
101+
// FIXME: Investigate why Semibold is crashing
102+
SmSemibold: { fontWeight: 'Bold', fontSize: 'sm' },
97103
XlBold: { fontWeight: 'Bold', fontSize: 'xl' },
98104
XlMedium: { fontWeight: 'Medium', fontSize: 'xl' },
99105
XlRegular: { fontWeight: 'Regular', fontSize: 'xl' },
100-
XlSemibold: { fontWeight: 'Semibold', fontSize: 'xl' },
106+
// FIXME: Investigate why Semibold is crashing
107+
XlSemibold: { fontWeight: 'Bold', fontSize: 'xl' },
101108
XsBold: { fontWeight: 'Bold', fontSize: 'xs' },
102109
XsMedium: { fontWeight: 'Medium', fontSize: 'xs' },
103110
XsRegular: { fontWeight: 'Regular', fontSize: 'xs' },
104-
XsSemibold: { fontWeight: 'Semibold', fontSize: 'xs' },
111+
// FIXME: Investigate why Semibold is crashing
112+
XsSemibold: { fontWeight: 'Bold', fontSize: 'xs' },
105113
XxlBold: { fontWeight: 'Bold', fontSize: 'xxl' },
106114
XxlMedium: { fontWeight: 'Medium', fontSize: 'xxl' },
107115
XxlRegular: { fontWeight: 'Regular', fontSize: 'xxl' },
108-
XxlSemibold: { fontWeight: 'Semibold', fontSize: 'xxl' },
116+
// FIXME: Investigate why Semibold is crashing
117+
XxlSemibold: { fontWeight: 'Bold', fontSize: 'xxl' },
109118
}

0 commit comments

Comments
 (0)