# CSS Override Issue with Zoom Meetings SDK in React App

**URL:** <https://devforum.zoom.us/t/css-override-issue-with-zoom-meetings-sdk-in-react-app/109147>\
**Category:** Video SDK\
**Created:** [May 2, 2024, 5:48pm UTC](https://devforum.zoom.us/t/css-override-issue-with-zoom-meetings-sdk-in-react-app/109147 "2024-05-02T17:48:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amabrouk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amabrouk/32/59259_2.png) [@amabrouk](https://devforum.zoom.us/u/amabrouk)\
**Post date:** [May 2, 2024, 5:48pm UTC](https://devforum.zoom.us/t/css-override-issue-with-zoom-meetings-sdk-in-react-app/109147/1 "2024-05-02T17:48:20Z")

</div>

I am writing to seek your assistance with an issue I am encountering while using the Zoom Meetings SDK (version ^3.6.0) in my React application.

Since integrating the SDK, I have noticed that the Zoom SDK is overriding a significant portion of my app’s CSS, which is causing layout and styling inconsistencies across various components. This interference is affecting the overall appearance and functionality of my app.

Here is my component:

```auto
import { ZoomMtg } from "@zoom/meetingsdk";

ZoomMtg.preLoadWasm();
ZoomMtg.prepareWebSDK();

function Zoom() {
  const sdkKey = "";
  const meetingNumber = 89214304839;
  const passWord = "138300";
  const userName = "Support";
  const userEmail = "support@test.com";
  const signature ="";
  var leaveUrl = "";

  function startMeeting() {
    document.getElementById("zmmtg-root")!.style.display = "block";

    ZoomMtg.init({
      leaveUrl: leaveUrl,
      patchJsMedia: true,
      success: (success: any) => {
        console.log(success);
        ZoomMtg.join({
          signature: signature,
          sdkKey: sdkKey,
          meetingNumber: meetingNumber,
          passWord: passWord,
          userName: userName,
          userEmail: userEmail,
          success: (success: any) => {
            console.log(success);
          },
          error: (error: any) => {
            console.log(error);
          },
        });
      },
      error: (error: any) => {
        console.log(error);
      },
    });
  }

  return (
    <main>
      <button className="btn btn-primary mt-20" onClick={startMeeting}>
        Join Meeting
      </button>
    </main>
  );
}

export default Zoom;

```

I have tried various methods to resolve the conflict, such as adjusting the order of CSS imports, using scoped styles, and applying additional specificity to my CSS rules, but the issue persists.

I would appreciate your guidance on how to best approach resolving this issue. Are there any known methods or best practices for preventing the Zoom Meetings SDK from overriding my app’s CSS? Is there a specific configuration or workaround I should be aware of?

Thank you for your time and assistance. I look forward to your prompt response and any advice you can offer.

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [May 13, 2024, 9:45am UTC](https://devforum.zoom.us/t/css-override-issue-with-zoom-meetings-sdk-in-react-app/109147/2 "2024-05-13T09:45:38Z")

</div>

Hi @amabrouk are you using Material UI for your app?

You can prefix your CSS classnames with a keyword like `my-app` with Material UI to avoid collisions with the SDK ([Reference](https://stackoverflow.com/questions/71338363/react-mui-class-name-collisions-when-using-a-library)).

Docs here: [API - Material-UI](https://v4.mui.com/styles/api/#creategenerateclassname-options-class-name-generator)

```auto
const generateClassName = createGenerateClassName({
  seed: 'my-app-'
});

...

 <ThemeProvider>
      <StylesProvider generateClassName={generateClassName}>
...
</TheamProvider>

```

Let me know if this helps.

---

<div class="post-metadata">

**Author:** ![cleiton7souza](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/cleiton7souza/32/64563_2.png) [@cleiton7souza](https://devforum.zoom.us/u/cleiton7souza)\
**Post date:** [November 1, 2024, 2:39am UTC](https://devforum.zoom.us/t/css-override-issue-with-zoom-meetings-sdk-in-react-app/109147/3 "2024-11-01T02:39:20Z")

</div>

what?

do you really think this is the best solution?

it’s clearly a problem with the css injected by zoom.

here’s an example that’s causing me a lot of trouble.

// zoom-meetingsdk.css

```css
.hidden {
    display: none !important;
    visibility: hidden !important;
}

```

I haven’t been able to solve it yet and I haven’t found anyone who has. The way zoom does this needs to change! Just put the id of the parent element that is used

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [November 5, 2024, 11:49am UTC](https://devforum.zoom.us/t/css-override-issue-with-zoom-meetings-sdk-in-react-app/109147/4 "2024-11-05T11:49:37Z")

</div>

Hey @cleiton7souza, I agree this isn’t the most elegant solution. I’ll speak with the team and check if we can add this to our roadmap for improvements.
