Skip to content

Commit a483b32

Browse files
committed
fix: 🚑 fix text inputs to have Inter as the font
1 parent daf3049 commit a483b32

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/input/Input.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { forwardRef, ReactNode, useMemo, useRef, useState } from "react";
22
import { Platform, TextInputProps } from "react-native";
33

44
import { Box, BoxProps, RNTextInput, TouchableProps } from "../../primitives";
5-
import { useTailwind, useTheme } from "../../theme";
5+
import { getTextFontFamily, useTailwind, useTheme } from "../../theme";
66
import {
77
cx,
88
generateBoxShadow,
@@ -286,6 +286,7 @@ const RNInput: React.FC<Partial<InputProps>> = forwardRef<
286286
_suffix ? `pr-[${suffixWidth}px]` : "",
287287
),
288288
),
289+
getTextFontFamily(inputTheme.size[size]?.base?.default),
289290
isFocussedWeb.value
290291
? Platform.select({
291292
web: {

src/components/text-area/TextArea.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { forwardRef, useMemo, useRef, useState } from "react";
22
import { Platform, TextInputProps } from "react-native";
33

44
import { Box, BoxProps, RNTextInput, TouchableProps } from "../../primitives";
5-
import { useTailwind, useTheme } from "../../theme";
5+
import { getTextFontFamily, useTailwind, useTheme } from "../../theme";
66
import {
77
cx,
88
generateBoxShadow,
@@ -235,6 +235,7 @@ const RNTextArea: React.FC<Partial<TextAreaProps>> = forwardRef<
235235
_suffix ? `pr-[${suffixWidth}px]` : "",
236236
),
237237
),
238+
getTextFontFamily(textAreaTheme.size[size]?.base?.default),
238239
isFocussedWeb.value
239240
? Platform.select({
240241
web: {

0 commit comments

Comments
 (0)