Skip to content

Commit b1beb4f

Browse files
committed
Auto merge of #3431 - lf-:lint-fixes, r=Turbo87
Add labels to forms missing them
2 parents ed0d36c + 31c2f67 commit b1beb4f

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.template-lintrc.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,5 @@
33
module.exports = {
44
extends: ['octane', 'a11y'],
55

6-
pending: [
7-
{ moduleId: 'app/components/email-input', only: ['require-input-label'] },
8-
{ moduleId: 'app/components/header', only: ['no-duplicate-landmark-elements'] },
9-
{ moduleId: 'app/templates/catch-all', only: ['require-input-label'] },
10-
{ moduleId: 'app/components/settings/api-tokens', only: ['require-input-label'] },
11-
],
6+
pending: [{ moduleId: 'app/components/header', only: ['no-duplicate-landmark-elements'] }],
127
};

app/components/email-input.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
{{#if this.isEditing }}
1212
<div local-class="row">
1313
<div local-class="label">
14-
<dt>Email</dt>
14+
<label for="email-input">Email</label>
1515
</div>
1616
<form local-class="email-form" {{on "submit" (prevent-default (perform this.saveEmailTask))}}>
1717
<Input
1818
@type="email"
1919
@value={{this.value}}
20+
id="email-input"
2021
placeholder="Email"
2122
local-class="input"
2223
data-test-input

app/components/settings/api-tokens.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<Input
3131
@type="text"
3232
placeholder="New token name"
33+
aria-label="New token name"
3334
disabled={{this.newToken.isSaving}}
3435
@value={{this.newToken.name}}
3536
data-test-focused-input

app/templates/catch-all.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@type="text"
1212
local-class="search-field"
1313
placeholder="Search"
14+
aria-label="Search"
1415
@value={{this.header.searchValue}}
1516
required={{true}}
1617
data-test-404-search-input

0 commit comments

Comments
 (0)