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

[material-ui] Button and few more components CSS styling are off when use with Bootstrap 5.3.3 #42024

Closed
hmheng opened this issue Apr 25, 2024 · 2 comments
Assignees
Labels
package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information

Comments

@hmheng
Copy link

hmheng commented Apr 25, 2024

Steps to reproduce

Link to live example: (required)

Steps:
1.Install Bootstrap 5 latest to nextjs 14 latest
2. Install latest MUI with enablecsslayer: true
3. Implement button with MUI, observe that the styling was overwritten by Bootstrap css style

Current behavior

Implement button with MUI, observe that the styling was overwritten by Bootstrap css style

Expected behavior

The MUI button should have MUI style and effect to be prioritised.

Context

Suggest to change all MUI styling using tag to specific class name and set high priority than bootstrap.

Your environment

Browser: chrome, and chromium edge.

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: MUI, Bootstrap

@hmheng hmheng added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 25, 2024
@zannager zannager added the package: system Specific to @mui/system label Apr 26, 2024
@danilo-leal danilo-leal changed the title Button and few more MUI components' css styling are off when use with Bootstrap 5.3.3 [material-ui] Button and few more components CSS styling are off when use with Bootstrap 5.3.3 Apr 29, 2024
@danilo-leal danilo-leal added package: material-ui Specific to @mui/material and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Apr 29, 2024
@danilo-leal
Copy link
Contributor

Hey, thanks for opening the issue! Could you provide a minimal reproduction? It helps us troubleshoot. A live example would be perfect. This StackBlitz sandbox template may be a good starting point.

@danilo-leal danilo-leal added status: waiting for author Issue with insufficient information and removed package: system Specific to @mui/system labels Apr 29, 2024
Copy link

github-actions bot commented May 6, 2024

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

@github-actions github-actions bot closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

4 participants