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

[Doc] Fix react-admin's vite tutorial CSS setup #8415

Merged
merged 1 commit into from
Nov 21, 2022
Merged

Conversation

WiXSL
Copy link
Contributor

@WiXSL WiXSL commented Nov 21, 2022

Fixes #8407

@WiXSL WiXSL added the RFR Ready For Review label Nov 21, 2022
@WiXSL WiXSL changed the title Fix react-admin's vite tutorial css setup Fix react-admin's vite tutorial CSS setup Nov 21, 2022
<App />
</React.StrictMode>
)
// in src/index.css
Copy link
Contributor Author

@WiXSL WiXSL Nov 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two more differences between simple project's index.html (which uses vite) and this tutorial's index.html

1- Script to adds the Roboto font
2- <script>window.global = window</script>

I don't know how relevant these are for a tutorial, let me know if I should add them as part of the tutorial to this PR

@WiXSL WiXSL changed the title Fix react-admin's vite tutorial CSS setup [Doc] Fix react-admin's vite tutorial CSS setup Nov 21, 2022
@fzaninotto fzaninotto merged commit 2781ccb into master Nov 21, 2022
@fzaninotto fzaninotto deleted the fix-vite-tutorial branch November 21, 2022 17:40
@fzaninotto fzaninotto added this to the 4.5.3 milestone Nov 21, 2022
@fzaninotto
Copy link
Member

As for the Roboto Font, you're right, we should add it back. I suggest we use the method described in the MUI doc. Would you mind opening another PR for that?

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

Successfully merging this pull request may close these issues.

Weird 8px <body> margin when following new vite tutorial
2 participants