Skip to content

Commit ef4c07c

Browse files
refactor(ui): inherit user profile Field label styles
1 parent 00498e6 commit ef4c07c

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

‎packages/ui/src/mosaic/user-profile/user-profile-profile-panel.styles.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ export const styles = stylex.create({
6666
backgroundColor: colorVars['--cl-color-border'],
6767
height: '1px',
6868
},
69-
fieldLabel: {
70-
color: colorVars['--cl-color-neutral-foreground'],
71-
fontWeight: 510,
72-
},
7369
input: {
7470
flexShrink: 0,
7571
maxWidth: '50%',

‎packages/ui/src/mosaic/user-profile/user-profile-profile-panel.view.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function FieldRow({ label, value, onChange }: { label: string; value: string; on
6363

6464
return (
6565
<Field.Root {...mergeStyleProps(themeProps('user-profile-profile-panel-field-row'), stylex.props(styles.row))}>
66-
<Field.Label {...stylex.props(styles.fieldLabel)}>{label}</Field.Label>
66+
<Field.Label>{label}</Field.Label>
6767
<Input
6868
readOnly={!onChange}
6969
size='md'

0 commit comments

Comments
 (0)