Skip to content

Commit 18d5415

Browse files
committed
Correct font family in Text and TextInput
1 parent 6d91208 commit 18d5415

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

packages/components/src/Text/Text.native.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ const TextRoot = styled(RNText, {
88
slot: 'Root',
99
})(({ theme }) => ({
1010
borderColor: theme.colors.border.default,
11-
fontFamily: theme.fonts.body.family,
12-
fontStyle: 'normal',
13-
fontWeight: 'normal',
11+
fontFamily: theme.fonts.body,
1412
position: 'static',
1513
}));
1614

packages/components/src/TextInput/TextInput.native.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ import type { TextInputProps, TextInputType } from './TextInput.types';
1717
const TextInputRoot = styled(RNTextInput, {
1818
name: 'TextInput',
1919
slot: 'Root',
20-
})({
20+
})(({ theme }) => ({
21+
fontFamily: theme.fonts.body,
2122
position: 'static',
22-
});
23+
}));
2324

2425
export const TextInput = forwardRef<any, TextInputProps>(
2526
(

packages/components/src/TextInput/TextInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const TextInputRoot = styled('input', {
9393
borderColor: theme.colors.border.default,
9494
borderStyle: 'solid',
9595
borderWidth: 0,
96-
fontFamily: theme.fonts.body.family,
96+
fontFamily: theme.fonts.body,
9797
resize: 'none',
9898
'&::placeholder': {
9999
color: 'var(--placeholder-text-color)',

0 commit comments

Comments
 (0)