Skip to content

Commit

Permalink
fix(material): consistently use outlined input variant
Browse files Browse the repository at this point in the history
Use outlined input variant as the default to match Material UI
  • Loading branch information
LukasBoll committed Jan 24, 2024
1 parent 1791e5c commit 3d8eed5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Migration guide

## Migrating to JSON Forms 3.2

### Material Renderers using Outlined Inputs

JSON Forms has been updated to use the `outlined` input variant as the default, aligning more closely with the default style of Material UI.

## Migrating to JSON Forms 3.0

### Additional parameter for testers
Expand Down
2 changes: 1 addition & 1 deletion packages/material-renderers/src/util/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const variantToInput = {
outlined: OutlinedInput,
};

export const defaultInputVariant: TextFieldProps['variant'] = 'standard';
export const defaultInputVariant: TextFieldProps['variant'] = 'outlined';

export function useInputVariant(): TextFieldProps['variant'] {
const { variant = defaultInputVariant } = useThemeProps({
Expand Down

0 comments on commit 3d8eed5

Please sign in to comment.