Skip to content

Commit

Permalink
Add data-darkreader-ignore attrs to prevent dark reader from messing …
Browse files Browse the repository at this point in the history
…up the styles
  • Loading branch information
thetarnav committed Dec 17, 2024
1 parent 2af318c commit 0af688e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/funny-emus-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@solid-devtools/debugger": patch
"@solid-devtools/overlay": patch
---

Add data-darkreader-ignore attrs to prevent dark reader from messing up the styles
2 changes: 1 addition & 1 deletion packages/debugger/src/locator/element-overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function createElementsOverlay(selected: Accessor<LocatorComponent[]>) {
setTimeout(() => {
runWithOwner(owner, () => (
<Portal useShadow mount={document.documentElement}>
<div>{selected().map(useElementOverlay)}</div>
<div data-darkreader-ignore>{selected().map(useElementOverlay)}</div>
</Portal>
))
}, 1000)
Expand Down
1 change: 1 addition & 0 deletions packages/overlay/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const Overlay: s.Component<OverlayOptions> = ({defaultOpen, alwaysOpen, noPaddin
return (
<web.Portal useShadow mount={document.documentElement}>
<div
data-darkreader-ignore
class="overlay__container"
classList={{'no-padding': noPadding}}
data-open={isOpen()}
Expand Down

0 comments on commit 0af688e

Please sign in to comment.