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

[docs][joy] Clarify when CssVarsProvider is required #36410

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

mnajdova
Copy link
Member

@mnajdova mnajdova commented Mar 3, 2023

After #35739, the using of CssVarsProvider in Joy UI apps is not required, unless it is used together with the Material UI icons - this is when we need to provide context theme change for the icon components. We may be able to solve this in the future, by updating the icon's styles in Material UI.

@mnajdova mnajdova added docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy labels Mar 3, 2023
@mui-bot
Copy link

mui-bot commented Mar 3, 2023

@@ -8,15 +8,10 @@ The following code snippet demonstrates a simple app that uses the Joy UI [Butto

```jsx
import * as React from 'react';
import { CssVarsProvider } from '@mui/joy/styles';
import Button from '@mui/joy/Button';

export default function MyApp() {
Copy link
Member Author

Choose a reason for hiding this comment

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

@samuelsycamore after we do the release on Monday, we should unfreeze the sandbox below and be able to remove the CssVarsProvider.

@mnajdova mnajdova marked this pull request as ready for review March 3, 2023 11:49
Copy link
Member

@hbjORbj hbjORbj left a comment

Choose a reason for hiding this comment

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

Looks better!

@hbjORbj hbjORbj merged commit 2a937f5 into mui:master Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants