Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide search and dark mode toggle when JS is disabled #171

Open
SamWilsn opened this issue Sep 6, 2023 · 3 comments
Open

Hide search and dark mode toggle when JS is disabled #171

SamWilsn opened this issue Sep 6, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@SamWilsn
Copy link

SamWilsn commented Sep 6, 2023

Something like this, but better:

<html>
<head>
<noscript>
<style>.needs-js { display: none; }</style>
</noscript>
</head>

<body>
<div class="needs-js">You support JavaScript!</div>
</body>
</html>
@Pandapip1
Copy link
Contributor

vuejs/vitepress#2680 vuejs/vitepress#2912

@Pandapip1 Pandapip1 added the enhancement New feature or request label Sep 6, 2023
@SamWilsn
Copy link
Author

SamWilsn commented Sep 6, 2023

Might have more luck framing it as a printer-friendly mode that also happens to get enabled when JS is unavailable.

@Pandapip1
Copy link
Contributor

It already has styling to hide them in the context of a printer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants