Skip to content

Commit

Permalink
ISSUE #5151 - fix input not having placeholder text
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Daniel committed Sep 27, 2024
1 parent 56c1ddb commit a23b4d0
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions frontend/src/v5/ui/themes/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,6 @@ export const theme = createTheme({
'-moz-appearance': 'textfield',
},

'::placeholder': {
opacity: 1,
color: COLOR.BASE_MAIN,
'&:hover': {
color: COLOR.SECONDARY_MAIN,
},
},
},
'.Mui-error': {
'.MuiOutlinedInput-notchedOutline': {
Expand Down Expand Up @@ -958,9 +951,6 @@ export const theme = createTheme({
},
'&:hover:not(.Mui-focused)': {
backgroundColor: COLOR.TERTIARY_LIGHTER,
'.MuiInputBase-input::placeholder': {
color: COLOR.SECONDARY_MAIN,
},
},
'&, &:hover, &.Mui-focused': {
'&:not(.Mui-disabled):before, &:not(.Mui-disabled):after': {
Expand All @@ -970,6 +960,13 @@ export const theme = createTheme({
},
input: {
padding: '0 12px',
'::placeholder': {
opacity: 1,
color: COLOR.BASE_MAIN,
},
'&:hover:not(.Mui-focused)::placeholder': {
color: COLOR.SECONDARY_MAIN,
},
},
},
},
Expand All @@ -996,6 +993,10 @@ export const theme = createTheme({
height: 35,
lineHeight: '35px',
},
'&&&& ::placeholder': {
opacity: '1 !important',
color: COLOR.BASE_LIGHTER,
},
},
notchedOutline: {
height: 35,
Expand Down

0 comments on commit a23b4d0

Please sign in to comment.