Skip to content

Commit f0366ce

Browse files
committed
Fix typography
1 parent 0aab46e commit f0366ce

File tree

1 file changed

+5
-2
lines changed
  • packages/components/src/components/Select

1 file changed

+5
-2
lines changed

packages/components/src/components/Select/index.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { Box, css, Flex, VStack } from '@devup-ui/react'
3+
import { Box, css, DevupThemeTypography, Flex, VStack } from '@devup-ui/react'
44
import clsx from 'clsx'
55
import {
66
Children,
@@ -55,6 +55,7 @@ interface SelectProps extends ComponentProps<'div'> {
5555
selectDisabled?: string
5656
primaryBg?: string
5757
}
58+
typography?: keyof DevupThemeTypography
5859
}
5960

6061
export function Select({
@@ -67,6 +68,7 @@ export function Select({
6768
open: openProp,
6869
onOpenChange,
6970
colors,
71+
typography,
7072
...props
7173
}: SelectProps) {
7274
const ref = useRef<HTMLDivElement>(null)
@@ -139,6 +141,7 @@ export function Select({
139141
selectDisabled: colors?.selectDisabled,
140142
primaryBg: colors?.primaryBg,
141143
}}
144+
typography={typography}
142145
{...props}
143146
>
144147
{children}
@@ -285,6 +288,7 @@ export function SelectOption({
285288
}
286289
cursor={changesOnHover ? 'pointer' : 'default'}
287290
data-value={value}
291+
fontWeight={isSelected ? '700' : '400'}
288292
gap={
289293
{
290294
checkbox: '10px',
@@ -297,7 +301,6 @@ export function SelectOption({
297301
px="10px"
298302
styleOrder={1}
299303
transition="background-color 0.1s ease-in-out"
300-
typography={isSelected ? 'inputBold' : 'inputText'}
301304
{...props}
302305
>
303306
{showCheck &&

0 commit comments

Comments
 (0)