Skip to content

Commit

Permalink
Merge pull request #567 from sudhanshutech/fix/typography
Browse files Browse the repository at this point in the history
Typography for Input fields
  • Loading branch information
leecalcote authored Apr 17, 2024
2 parents db200a2 + 5b2b2e9 commit eefb2b3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Layer5 Design System Sistent
# Layer5 Design System Sistent

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

Expand Down
4 changes: 3 additions & 1 deletion src/theme/components/formlabel.modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ export const MuiFormLabel: Components<Theme>['MuiFormLabel'] = {
const {
palette: {
background: { brand }
}
},
typography: { textB1Regular }
} = theme;
return {
...textB1Regular,
'&.Mui-focused': {
color: brand?.default
}
Expand Down
4 changes: 3 additions & 1 deletion src/theme/components/input.modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ export const MuiInput: Components<Theme>['MuiInput'] = {
const {
palette: {
background: { graphics }
}
},
typography: { textB1Regular }
} = theme;
return {
...textB1Regular,
'&:before': {
borderBottom: '2px solid rgba(0, 0, 0, 0.5)'
},
Expand Down
4 changes: 3 additions & 1 deletion src/theme/components/outlinedinput.modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ export const MuiOutlinedInput: Components<Theme>['MuiOutlinedInput'] = {
const {
palette: {
background: { graphics, brand }
}
},
typography: { textB1Regular }
} = theme;
return {
...textB1Regular,
[`&:hover .${outlinedInputClasses.notchedOutline}`]: {
borderColor: graphics?.default
},
Expand Down
4 changes: 3 additions & 1 deletion src/theme/components/textfield.modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ export const MuiTextField: Components<Theme>['MuiTextField'] = {
const {
palette: {
background: { graphics }
}
},
typography: { textB1Regular }
} = theme;
return {
...textB1Regular,
'--TextField-brandBorderColor': 'rgba(0, 0, 0, 0.5)',
'--TextField-brandBorderHoverColor': graphics?.default,
'--TextField-brandBorderFocusedColor': graphics?.default,
Expand Down

0 comments on commit eefb2b3

Please sign in to comment.