-
Notifications
You must be signed in to change notification settings - Fork 934
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
Fix customization with createTheme #1882
Conversation
deleted as misleading |
Hi @wdh2100, @patorjk, @gregn, @gabrielliwerant, @InnuceEAN. Best regards, |
@wdh2100 🙏🏻 Merge and release. I understand that you want to test the changes before merging. If you can't make the time maybe just upgrade to the latest version of Best regards, |
Seems like this project is no longer actively maintained... "resolutions": {
"tss-react": "3.6.0"
},
"dependencies": {
"tss-react": "^3.6.0"
} Once this PR get merged you will be able to remove |
Hey @wdh2100, it would be awesome! If you could take a look at this PR. |
An update on my side. |
sorry.. 😭 😭 😭 I will release new version it this weekend |
@garronej Is this documented somewhere? And is it fixed? Can seem to get the Styles working again. |
Hi @FluxChris
It should work just like it used to before things where broken by the upgrade to MUIv5 |
Can you tell me what dependencies versions you are using to make this work? |
@FluxChris When I say it work like it used to that is per say assumed you have correctly updated MUI to v5 on your side. Here is a working example here You can mess around with it: git clone https://github.com/gregnb/mui-datatables
cd mui-datatables
npm install
npm run dev
# Open to http://localhost:5050/#customize-styling Good luck |
Hello, i follow the example, but nothing happen (typescript give me errors, but i fix with an "any" workaround, but no style is apply |
Hi @Atomico001, |
Hi @garronej ty for answer, i finally found the problem. i was importing: import { createTheme, ThemeProvider } from '@material-ui/core/styles'; |
@Atomico001 thanks for the feedback |
I am trying to change the hover color with pointer.
The problem is only a cell is colored, how can i target the row? |
Hi,
UPTATE: Mainly, this PR fixes #1878 and #1842. Beside;
A new version of
tss-react
has been released,tss-react
no longer requires it to be a peer dependency.I have updated the
package.json
and theREADME.md
to take advantage of this.I also made a few more changes in the dependency requirement:
@emotion/react
: It's a peer dependency of@mui/material
and you use it directly. This means that@emotion/react
should be a peer dependency ofmui-datatalbes
.@emotion/react
is a module that usesReact.Context
thus there can't be multiple copies of the lib in a project: It can't be independencies
.@emotion/styled
: It's a peer dependency of@mui/material
but you never use it directly => It should be indevDependencies
notdependencies
.This PR would make #1871 unnecessary.
I'm obviously biased being the author of
tss-react
but I think it's for the best since #1871 implements the automatic approach decribed in the v4 to v5 migration guide which is not optimal:Best regards,