nextjs-portal should be removed from DOM if devIndicators is false in Next Config #76734
devklepacki
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
The portal is also used for the error overlay/popup, which can be shown regardless of We put it in a shadow root to isolate it (and its styles) from the rest of the page, maybe there's a way to filter those out in chrome's devtools? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
No response
Background
I'm always working with non-standard media queries of 600, 900, 1200 and 1800 px. I don't allow any other in my code.
But in Google Chrome other media queries are shown in top bars in Responsive Mode Dev View:
The media queries are only coming from
nextjs-portal
anddata-nextjs-dialog
element:The
nextjs-portal
element is present in DOM even whendevIndicators
is set tofalse
in Next Config. In such situationnextjs-portal
does not contain anything else beside unused styles:Proposal
The
nextjs-portal
element should be removed entirely from DOM whendevIndicators
config property is set tofalse
.Even if the element is doing some other things even when hidden, the styles should be removed.
Beta Was this translation helpful? Give feedback.
All reactions