Skip to content

Commit 7d9cec0

Browse files
committed
fix: gracefully degrade UI when JS is disabled
- Hide theme toggle button via noscript style tag.
1 parent f009145 commit 7d9cec0

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

ecosystem.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1111
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
1212
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/devicon.min.css" />
13+
<noscript>
14+
<style>
15+
#theme-toggle { display: none !important; }
16+
</style>
17+
</noscript>
18+
1319
</head>
1420
<body>
1521
<a href="#main-content" class="skip-link sr-only focusable">Skip to main content</a>

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
1212
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/devicon.min.css" />
1313

14+
<noscript>
15+
<style>
16+
#theme-toggle { display: none !important; }
17+
</style>
18+
</noscript>
19+
1420
</head>
1521
<body>
1622
<a href="#main-content" class="skip-link sr-only focusable">Skip to main content</a>

0 commit comments

Comments
 (0)