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

BulkActionButtons mobile styling issue #9195

Closed
zhiguow opened this issue Aug 18, 2023 · 1 comment · Fixed by #9222
Closed

BulkActionButtons mobile styling issue #9195

zhiguow opened this issue Aug 18, 2023 · 1 comment · Fixed by #9222
Assignees
Labels

Comments

@zhiguow
Copy link

zhiguow commented Aug 18, 2023

After the Datagrid passed in the bulkActionButtons, when selecting on the mobile phone, there was a problem with the TopToolbar above the Datagrid: the actionButton was set with a white background color to cover the theme color of the TopToolbar.

What you were expecting:

e

What happened instead:

i

Steps to reproduce:

On the mobile side, visit https://marmelab.com/react-admin-demo/#/invoices, click to select a record.

1.mp4

Related code:

<Datagrid bulkActionButtons={<PostBulkActionButtons />} >
       .
       .
       .
  </Datagrid>

Temporary solution:

<Datagrid
      sx={{
          '& .RaBulkActionsToolbar-topToolbar': { backgroundColor: 'rgba(0, 0, 0, 0)' },
      }}
      bulkActionButtons={<PostBulkActionButtons />}
  >
       .
       .
       .
  </Datagrid>

Other information:

1

Environment

  • React-admin version: 4.6.1
  • React version: 18.2.0
  • Browser: Chrome
@fzaninotto
Copy link
Member

Reproduced, thanks!

@fzaninotto fzaninotto added the bug label Aug 18, 2023
@fzaninotto fzaninotto changed the title After the Datagrid passed in the bulkActionButtons, when selecting on the mobile phone, there was a problem with the TopToolbar above the Datagrid: the actionButton was set with a white background color to cover the theme color of the TopToolbar. BulkActionButtons mobile styling issue Aug 25, 2023
@fzaninotto fzaninotto self-assigned this Aug 25, 2023
fzaninotto added a commit that referenced this issue Aug 25, 2023
Closes BulkActionButtons mobile styling issue #9195
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants