We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2918206 commit 8395720Copy full SHA for 8395720
src/helpers/modal.ts
@@ -21,7 +21,10 @@ export const getModalTarget = (): ShadowRoot => {
21
const target = element.attachShadow({ mode: "open" })
22
23
const styleElement = document.createElement("style")
24
- styleElement.textContent = css
+ styleElement.textContent = css.replace(
25
+ /\.dark:root/g,
26
+ ":host-context(.dark), .dark",
27
+ )
28
target.appendChild(styleElement)
29
30
return target
0 commit comments