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 missing margin prop in several Labeled components #6282

Merged
merged 1 commit into from
May 18, 2021
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
1 change: 1 addition & 0 deletions packages/ra-ui-materialui/src/input/ArrayInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const ArrayInput: FC<ArrayInputProps> = ({
source={source}
resource={resource}
className={className}
margin={margin}
>
<LinearProgress />
</Labeled>
Expand Down
1 change: 1 addition & 0 deletions packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ const CheckboxGroupInput: FunctionComponent<CheckboxGroupInputProps> = props =>
resource={resource}
className={className}
isRequired={isRequired}
margin={margin}
>
<LinearProgress />
</Labeled>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ const RadioButtonGroupInput: FunctionComponent<RadioButtonGroupInputProps> = pro
resource={resource}
className={rest.className}
isRequired={isRequired}
margin={margin}
meta={meta}
input={input}
>
Expand Down
1 change: 1 addition & 0 deletions packages/ra-ui-materialui/src/input/SelectArrayInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ const SelectArrayInput = (props: SelectArrayInputProps) => {
resource={resource}
className={className}
isRequired={isRequired}
margin={margin}
>
<LinearProgress />
</Labeled>
Expand Down
3 changes: 3 additions & 0 deletions packages/ra-ui-materialui/src/input/SelectInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export const SelectInput = (props: SelectInputProps) => {
label,
loaded,
loading,
margin = 'dense',
WiXSL marked this conversation as resolved.
Show resolved Hide resolved
onBlur,
onChange,
onCreate,
Expand Down Expand Up @@ -209,6 +210,7 @@ export const SelectInput = (props: SelectInputProps) => {
isRequired={isRequired}
meta={meta}
input={input}
margin={margin}
>
<LinearProgress />
</Labeled>
Expand Down Expand Up @@ -245,6 +247,7 @@ export const SelectInput = (props: SelectInputProps) => {
helperText={helperText}
/>
}
margin={margin}
{...options}
{...sanitizeRestProps(rest)}
>
Expand Down