Disabling the Astro dev toolbar on specific pages or instances #1243
randomguy-2650
started this conversation in
Proposal
Replies: 0 comments
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.
-
Body
Summary
This discussion proposes an addition of hiding or disabling the Astro dev toolbar on certain pages, or certain pages that are displayed on a separate instance, like an
<iframe>
.Background & Motivation
If an Astro page is placed in
src/pages
and there is an<iframe>
on a different page displaying that Astro page, there would be a dev toolbar in that “iframed page”, which doesn’t look correct. Some pages are intended to only be shown in an iframe anyways, so by having the ability to hide it on certain pages (via an attribute, Astro config setting, etc.) or in certain instances would be great.Some people might just say to disable the dev toolbar entirely, but oftentimes, the dev toolbar is useful for basic a11y testing and maybe performance stuff as well as some debug log settings.
Goals
Beta Was this translation helpful? Give feedback.
All reactions