Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mui input label size and appearance #1532

Merged
merged 2 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading