OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

ChakraUI inside chrome extension style all pages

  • Thread starter Thread starter sthsmw
  • Start date Start date
S

sthsmw

Guest
I have small issue realted to ChakraUI. I try to create chrome extension wit it, unfortunettly all default chakra theme apply to all pages, theres any way to prevent it? i try to use cssVarsRoot, also read about @emotion but i cannot find solution.

Code:
popupRoot && 
  ReactDOM.render(
      <ChakraProvider resetCSS cssVarsRoot="#popup-root">
        <PopupComponent />
      </ChakraProvider>,
    popupRoot
  );

<p>I have small issue realted to ChakraUI.
I try to create chrome extension wit it, unfortunettly all default chakra theme apply to all pages, theres any way to prevent it? i try to use cssVarsRoot, also read about @emotion but i cannot find solution.</p>
<pre><code>popupRoot &&
ReactDOM.render(
<ChakraProvider resetCSS cssVarsRoot="#popup-root">
<PopupComponent />
</ChakraProvider>,
popupRoot
);
</code></pre>
 

Latest posts

I
Replies
0
Views
1
impact christian
I
Top