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

Prop style in SimpleShowLayout doesn't works #2697

Closed
AdriaRios opened this issue Dec 27, 2018 · 1 comment
Closed

Prop style in SimpleShowLayout doesn't works #2697

AdriaRios opened this issue Dec 27, 2018 · 1 comment
Assignees

Comments

@AdriaRios
Copy link

What you were expecting:
If I provide a style prop to SimpleShowLayout. Styles should be applied. Following the docu:
https://marmelab.com/react-admin/Show.html

What happened instead:
If I provide a style prop to SimpleShowLayout. Styles aren't applied

Steps to reproduce:
Check that, and confirm that does not works:

<SimpleShowLayout style={{backgroundColor: 'hotpink'}}>
      ....
</SimpleShowLayout>

Environment

  • React-admin version: 2.5.2
  • React version:16.5.2
  • Browser: Chrome
@fzaninotto
Copy link
Member

The doc is outdated. style isn't supported anymore, you need to pass a className to override the styles. I'm going to update the doc accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants