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

CheckboxGroupInput is not aligned with other Inputs in List Filters #2750

Closed
Luwangel opened this issue Jan 10, 2019 · 0 comments
Closed

CheckboxGroupInput is not aligned with other Inputs in List Filters #2750

Luwangel opened this issue Jan 10, 2019 · 0 comments
Labels

Comments

@Luwangel
Copy link
Contributor

What you were expecting:

I use a CheckboxGroupInput in Filters, but this one is not aligned with the others inputs. I want the label and the checkboxes to be aligned as you can see below.

selection_001

What happened instead:

According to this screenshot, we can see that the labels are not aligned.

selection_002

Steps to reproduce:

  • Create a CheckboxGroupInput filter
  • Select the filter in the list and compare it to others
const PostFilter = props => (
    <Filter {...props}>
        <TextInput
            source="title"
            defaultValue="Qui tempore rerum et voluptates"
        />
        <CheckboxGroupInput
            label="Languages"
            choices={[
                { id: 'english', name: 'English' },
                { id: 'french', name: 'French' },
            ]}
            {...props}
        />
    </Filter>
);

Related code:

It's a bug related to how the checkboxes are designed in Material UI. In facts, they use a IconButton which has a default size which is bigger than the size expected to align our filters.

Environment

  • React-admin version: 2.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant