Commite1c0fbeunknown_key
fix: add aria-label/id attributes to inputs for accessibility
fix: add aria-label/id attributes to inputs for accessibility Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: ccantynz-alt <251062557+ccantynz-alt@users.noreply.github.com>
7 files changed+14−1e1c0fbecf73eb2d2b657d150665f9d6250db3fe8
7 changed files+14−1
Modifiedsrc/routes/saved-replies.tsx+1−0View fileUnifiedSplit
@@ -115,6 +115,7 @@ replies.get("/settings/replies", async (c) => {
115115 required
116116 value={r.shortcut}
117117 maxLength={64}
118 aria-label="Shortcut"
118119 />
119120 </div>
120121 <div class="form-group">
Modifiedsrc/routes/search.tsx+1−0View fileUnifiedSplit
@@ -148,6 +148,7 @@ search.get("/search", async (c) => {
148148 name="q"
149149 value={q}
150150 placeholder="Search repositories, users, issues, PRs…"
151 aria-label="Search"
151152 style="width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 14px"
152153 autofocus
153154 />
Modifiedsrc/routes/semantic-search.tsx+1−0View fileUnifiedSplit
@@ -159,6 +159,7 @@ semanticSearch.get("/:owner/:repo/search/semantic", async (c) => {
159159 name="q"
160160 value={q}
161161 placeholder="Ask a question or describe what you're looking for…"
162 aria-label="Search"
162163 style="width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 14px"
163164 autofocus
164165 />
Modifiedsrc/routes/settings-2fa.tsx+2−0View fileUnifiedSplit
@@ -140,6 +140,7 @@ settings2fa.get("/settings/2fa", async (c) => {
140140 <label for="password">Password</label>
141141 <input
142142 type="password"
143 id="password"
143144 name="password"
144145 required
145146 autocomplete="current-password"
@@ -238,6 +239,7 @@ async function showEnrolPage(c: any, user: any, error?: string) {
238239 <label for="code">6-digit code</label>
239240 <input
240241 type="text"
242 id="code"
241243 name="code"
242244 required
243245 pattern="[0-9]{6}"
Modifiedsrc/routes/settings.tsx+4−0View fileUnifiedSplit
@@ -99,6 +99,7 @@ settings.get("/settings", (c) => {
9999 name="notify_email_on_mention"
100100 value="1"
101101 checked={user.notifyEmailOnMention}
102 aria-label="Someone @mentions me or requests a review"
102103 />
103104 <span>
104105 Someone <code>@mentions</code> me or requests a review
@@ -112,6 +113,7 @@ settings.get("/settings", (c) => {
112113 name="notify_email_on_assign"
113114 value="1"
114115 checked={user.notifyEmailOnAssign}
116 aria-label="I am assigned to an issue or PR"
115117 />
116118 <span>I am assigned to an issue or PR</span>
117119 </label>
@@ -123,6 +125,7 @@ settings.get("/settings", (c) => {
123125 name="notify_email_on_gate_fail"
124126 value="1"
125127 checked={user.notifyEmailOnGateFail}
128 aria-label="A gate fails on one of my repositories"
126129 />
127130 <span>A gate fails on one of my repositories</span>
128131 </label>
@@ -134,6 +137,7 @@ settings.get("/settings", (c) => {
134137 name="notify_email_digest_weekly"
135138 value="1"
136139 checked={user.notifyEmailDigestWeekly}
140 aria-label="Weekly digest email"
137141 />
138142 <span>
139143 Weekly digest —{" "}
Modifiedsrc/routes/sponsors.tsx+3−1View fileUnifiedSplit
@@ -96,6 +96,7 @@ sponsors.get("/sponsors/:username", async (c) => {
9696 placeholder="Amount in cents (e.g. 500 = $5)"
9797 min="100"
9898 required
99 aria-label="Sponsorship amount in cents"
99100 style="width:60%"
100101 />{" "}
101102 <button type="submit" class="btn btn-primary">
@@ -324,7 +325,7 @@ sponsors.get("/settings/sponsors", requireAuth, async (c) => {
324325 >
325326 <div class="form-group">
326327 <label>Name</label>
327 <input type="text" name="name" required style="width:100%" />
328 <input type="text" name="name" required aria-label="Tier name" style="width:100%" />
328329 </div>
329330 <div class="form-group">
330331 <label>Description</label>
@@ -338,6 +339,7 @@ sponsors.get("/settings/sponsors", requireAuth, async (c) => {
338339 min="0"
339340 placeholder="500 = $5/mo"
340341 required
342 aria-label="Monthly amount in cents"
341343 />
342344 </div>
343345 <button type="submit" class="btn btn-primary">
Modifiedsrc/routes/sso.tsx+2−0View fileUnifiedSplit
@@ -120,6 +120,7 @@ sso.get("/admin/sso", requireAuth, async (c) => {
120120 name="enabled"
121121 value="1"
122122 checked={!!cfg?.enabled}
123 aria-label="Enable SSO sign-in on /login"
123124 />
124125 <span>Enable SSO sign-in on /login</span>
125126 </label>
@@ -226,6 +227,7 @@ sso.get("/admin/sso", requireAuth, async (c) => {
226227 name="auto_create_users"
227228 value="1"
228229 checked={cfg ? cfg.autoCreateUsers : true}
230 aria-label="Auto-create users on first SSO sign-in"
229231 />
230232 <span>
231233 Auto-create local accounts on first SSO sign-in (turn off to
232234