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

[core] Use useRtl instead of useTheme to access direction #14359

Merged
merged 3 commits into from
Aug 29, 2024

Conversation

LukasTy
Copy link
Member

@LukasTy LukasTy commented Aug 27, 2024

Follow up on #13363.

When working on #14142 and noticing that we are reverting back to @mui/system as a peer dependency I thought that it would make sense for all packages to actually "need" that peer dependency to function properly.

This is also a stepping stone for PigmentCSS support.

It also has the added benefit of further reducing the coupling with @mui/material.

Review from the Data Grid team is essential as it touches the store.
I've done some testing to ensure that it functions as it currently does, but at least a second pair of eyes is essential.

@LukasTy LukasTy added core Infrastructure work going on behind the scenes component: data grid This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature component: charts This is the name of the generic UI component, not the React module! labels Aug 27, 2024
@LukasTy LukasTy requested review from a team August 27, 2024 07:33
@LukasTy LukasTy self-assigned this Aug 27, 2024
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Aug 27, 2024
@mui-bot
Copy link

mui-bot commented Aug 27, 2024

Deploy preview: https://deploy-preview-14359--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 2f41c56

Copy link

codspeed-hq bot commented Aug 27, 2024

CodSpeed Performance Report

Merging #14359 will not alter performance

Comparing LukasTy:use-is-rtl-hook (2f41c56) with master (1a23942)

Summary

✅ 3 untouched benchmarks

Copy link
Member

@alexfauquette alexfauquette left a comment

Choose a reason for hiding this comment

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

Looks good for charts 👍

Signed-off-by: Lukas Tyla <llukas.tyla@gmail.com>
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Aug 27, 2024
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: charts This is the name of the generic UI component, not the React module! component: data grid This is the name of the generic UI component, not the React module! core Infrastructure work going on behind the scenes enhancement This is not a bug, nor a new feature size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants