Skip to content

Commit bfc5c89

Browse files
authored
Merge pull request #14 from goude/claude/backlog-items-EHhe1
Add sr-only utility class and improve accessibility
2 parents 6105b92 + c025c4b commit bfc5c89

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ clean:
6464
reset: clean
6565
rm -rf node_modules/
6666

67-
# Repomix
67+
# 📦 Bundle repo snapshot for LLM context (excludes secrets and large files)
6868
repomix:
6969
repomix --ignore "coverage/,node_modules/,public/fonts,src/pages/egghunt.astro"
7070

71-
# Synchronize SVG Colors
71+
# 🎨 Synchronize SVG fill colors to match the active theme palette (default: light)
7272
svg-sync THEME="light":
7373
node scripts/sync-svg-swatches.mjs --verbose {{THEME}}

src/pages/egghunt.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import Layout from "@/layouts/Layout.astro";
77
<h1>🥚 egghunt</h1>
88

99
<div class="puzzle-input">
10+
<label for="answer" class="sr-only">Puzzle answer</label>
1011
<input
1112
type="text"
1213
id="answer"
1314
placeholder="Enter answer..."
14-
aria-label="Puzzle answer"
1515
autocomplete="off"
1616
/>
1717
<button id="submit">Submit</button>

src/styles/base.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,15 @@ mark {
136136
.text-muted {
137137
color: var(--text-muted);
138138
}
139+
140+
.sr-only {
141+
position: absolute;
142+
width: 1px;
143+
height: 1px;
144+
padding: 0;
145+
margin: -1px;
146+
overflow: hidden;
147+
clip: rect(0, 0, 0, 0);
148+
white-space: nowrap;
149+
border-width: 0;
150+
}

0 commit comments

Comments
 (0)