Skip to content

Commit eefb2b3

Browse files
authored
Merge pull request #567 from sudhanshutech/fix/typography
Typography for Input fields
2 parents db200a2 + 5b2b2e9 commit eefb2b3

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Layer5 Design System Sistent
1+
# Layer5 Design System Sistent
22

33
The Sistent Design System from Layer5 provides the open source building blocks to design and implement consistent, accessible, and delightful product experiences.
44

src/theme/components/formlabel.modifier.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ export const MuiFormLabel: Components<Theme>['MuiFormLabel'] = {
66
const {
77
palette: {
88
background: { brand }
9-
}
9+
},
10+
typography: { textB1Regular }
1011
} = theme;
1112
return {
13+
...textB1Regular,
1214
'&.Mui-focused': {
1315
color: brand?.default
1416
}

src/theme/components/input.modifier.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ export const MuiInput: Components<Theme>['MuiInput'] = {
66
const {
77
palette: {
88
background: { graphics }
9-
}
9+
},
10+
typography: { textB1Regular }
1011
} = theme;
1112
return {
13+
...textB1Regular,
1214
'&:before': {
1315
borderBottom: '2px solid rgba(0, 0, 0, 0.5)'
1416
},

src/theme/components/outlinedinput.modifier.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ export const MuiOutlinedInput: Components<Theme>['MuiOutlinedInput'] = {
1010
const {
1111
palette: {
1212
background: { graphics, brand }
13-
}
13+
},
14+
typography: { textB1Regular }
1415
} = theme;
1516
return {
17+
...textB1Regular,
1618
[`&:hover .${outlinedInputClasses.notchedOutline}`]: {
1719
borderColor: graphics?.default
1820
},

src/theme/components/textfield.modifier.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ export const MuiTextField: Components<Theme>['MuiTextField'] = {
66
const {
77
palette: {
88
background: { graphics }
9-
}
9+
},
10+
typography: { textB1Regular }
1011
} = theme;
1112
return {
13+
...textB1Regular,
1214
'--TextField-brandBorderColor': 'rgba(0, 0, 0, 0.5)',
1315
'--TextField-brandBorderHoverColor': graphics?.default,
1416
'--TextField-brandBorderFocusedColor': graphics?.default,

0 commit comments

Comments
 (0)