Skip to content

Commit b026b12

Browse files
committed
fix(ui): keep the member name font weight theme-backed
The StyleX migration left this weight as a literal `500`, since `Text` no longer accepts Emotion's `sx` and that is where `t.font.medium` came from. Read the migrated token instead, so a theme overriding `--cl-font-medium` still applies.
1 parent bc98a1a commit b026b12

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/ui/src/mosaic/organization/organization-profile-members-panel.view.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Input } from '../components/input';
66
import { Skeleton } from '../components/skeleton';
77
import { Text } from '../components/text';
88
import type { Snapshot } from '../machine/types';
9+
import { fontWeightVars } from '../tokens.stylex';
910
import type { MemberRow } from './organization-profile-members-panel.controller';
1011
import type {
1112
OrganizationProfileMembersPanelContext,
@@ -233,7 +234,7 @@ export function OrganizationProfileMembersPanelView({
233234
<Box sx={t => ({ display: 'flex', alignItems: 'center', gap: t.spacing(1.5) })}>
234235
<Text
235236
size='sm'
236-
style={{ fontWeight: 500 }}
237+
style={{ fontWeight: fontWeightVars['--cl-font-medium'] }}
237238
>
238239
{row.name}
239240
</Text>

0 commit comments

Comments
 (0)