Skip to content

Commit ac9a270

Browse files
committed
background labelling improvements
1 parent e10f340 commit ac9a270

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ <h1 class="text-2xl font-bold font-mono tracking-tight text-accent-2">Julian Red
117117
Theme/<ion-icon id="theme-toggle-icon" name="moon-outline" class="text-base inline-block align-middle pointer-events-none ml-0.5"></ion-icon>
118118
</button>
119119
<button id="particle-toggle" class="text-zinc-500 hover:text-accent transition-colors cursor-pointer" aria-label="Background: On">
120-
Background/On
120+
Background/
121121
</button>
122122
</div>
123123
</header>

particles.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,9 +656,9 @@
656656
if (!toggleButton) {
657657
return;
658658
}
659-
const label = enabled ? "On" : "Off";
660-
toggleButton.textContent = `Background/${label}`;
661-
toggleButton.setAttribute("aria-label", `Background: ${label}`);
659+
const dot = enabled ? "" : "";
660+
toggleButton.textContent = `Background/${dot}`;
661+
toggleButton.setAttribute("aria-label", `Background: ${enabled ? "On" : "Off"}`);
662662
};
663663

664664
const initializeParticlesWhenReady = async () => {

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ <h1 class="text-2xl font-bold font-mono tracking-tight text-accent-2">{user.name
117117
Theme/<ion-icon id="theme-toggle-icon" name="moon-outline" class="text-base inline-block align-middle pointer-events-none ml-0.5"></ion-icon>
118118
</button>
119119
<button id="particle-toggle" class="text-zinc-500 hover:text-accent transition-colors cursor-pointer" aria-label="Background: On">
120-
Background/On
120+
Background/
121121
</button>
122122
</div>
123123
</header>

0 commit comments

Comments
 (0)