Skip to content

Commit

Permalink
fix mui input label size and appearance (#1532)
Browse files Browse the repository at this point in the history
* fix mui input label size and appearance

* update snapshot

---------

Co-authored-by: Olivér Hegyi <[email protected]>
  • Loading branch information
HegyiOliver and Olivér Hegyi authored Sep 28, 2023
1 parent cff96f8 commit cdd6373
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/sensenet/src/context/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ export const ThemeProvider: React.FunctionComponent = (props) => {
'@font-face': [larsseit],
},
},
MuiInputLabel: {
root: {
fontSize: '1.3rem',
},
},
},
})

Expand Down
1 change: 1 addition & 0 deletions packages/sn-controls-react/src/fieldcontrols/textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const Textarea: React.FC<ReactClientFieldSetting<LongTextFieldSetting>> =
multiline={true}
fullWidth={true}
helperText={props.hideDescription ? undefined : props.settings.Description}
InputLabelProps={{ shrink: true }}
/>
)
case 'browse':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ exports[`Textarea field control in browse view should show the displayname and f

exports[`Textarea field control in edit/new view should set all the props 1`] = `
<WithStyles(ForwardRef(TextField))
InputLabelProps={
Object {
"shrink": true,
}
}
disabled={true}
fullWidth={true}
helperText="description"
Expand Down

0 comments on commit cdd6373

Please sign in to comment.