[joy-ui] Automatic adjustment does not work when using it with Material UI
Open
@siriwatknp is already working on this.
Since May 15, 2023.
docs
package: joy-ui
scope: all components
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Steps to reproduce 🕹
Link to live example: https://codesandbox.io/s/rough-browser-3d6rtd?file=/index.tsx
Steps:
- Take the example of usage for Material Icons in Using icon libraries.
- Apply the changes described in Using Joy UI and Material UI together.
- The icons in the demo which used to auto-adjust in size in step 1, no longer auto-adjust, they are all the same size.
Current behavior 😯
Icons appear all the same size in this example:
Expected behavior 🤔
Icons auto-adjust their size:
Context 🔦
I am building a web application where I need to use components from both libraries Material UI and Joy UI, and I noticed that auto-adjustment in Joy UI doesn't work in this case, which is quite disruptive.
Your environment 🌎
npx @mui/envinfo
System:
OS: Linux 5.19 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
Binaries:
Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
Yarn: Not Found
npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
Browsers:
Chrome: 113.0.5672.92
Firefox: 113.0.1
npmPackages:
@emotion/react: 11.10.5
@emotion/styled: 11.10.5
@mui/base: 5.0.0-beta.0
@mui/core-downloads-tracker: 5.13.0
@mui/icons-material: ^5.11.16 => 5.11.16
@mui/joy: ^5.0.0-alpha.79 => 5.0.0-alpha.79
@mui/lab: ^5.0.0-alpha.129 => 5.0.0-alpha.129
@mui/material: ^5.13.0 => 5.13.0
@mui/private-theming: 5.12.3
@mui/styled-engine: 5.12.3
@mui/system: 5.12.3
@mui/types: 7.2.4
@mui/utils: 5.12.3
@types/react: ^18.0.21 => 18.0.25
react: ^18.2.0 => 18.2.0
react-dom: ^18.2.0 => 18.2.0
typescript: ^4.8.4 => 4.9.3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.