Skip to content

Commit 1508bc7

Browse files
committed
Accessibility fixes
1 parent 6f37266 commit 1508bc7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/components/KeyWordsEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<input id="newKeyword" aria-labelledby="keyword-label" type="text" class="form-control" maxlength="260" v-model="newKeyword" v-bind:class="{ 'input-validation-error': keywordError }" @input="keywordError=false" @change="keywordChange" />
2020
<button type="button" class="nhsuk-button nhsuk-button--secondary ml-3 button_width nhsuk-u-margin-bottom-0" @click="addKeyword">&nbsp;Add</button>
2121
</div>
22-
<div class="col-12 footer-text">
22+
<div class="col-12 footer-text" id="keyword-label">
2323
You can enter a maximum of 50 characters per keyword
2424
</div>
2525
</div>

LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/ContentCommon.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<span class="text-danger">The keyword(s) have already been added : {{formattedkeywordErrorMessage}}</span>
8888
</div>
8989
<div class="col-12 mb-0 error-text" v-if="keywordLengthExceeded">
90-
<span class="text-danger">
90+
<span class="text-danger" id="keyword-label">
9191
Each keyword must be no longer than 50 characters.
9292
</span>
9393
</div>
@@ -99,7 +99,7 @@
9999
<input id="newKeyword" aria-labelledby="keyword-label" aria-describedby="keyworddesc" type="text" class="form-control" maxlength="260" v-model="newKeyword" v-bind:class="{ 'input-validation-error': keywordError }" @input="keywordError=false" @change="keywordChange" />
100100
<button type="button" class="nhsuk-button nhsuk-button--secondary ml-3 nhsuk-u-margin-bottom-0" @click="addKeyword">&nbsp;Add</button>
101101
</div>
102-
<div class="col-12 footer-text">
102+
<div class="col-12 footer-text" id="keyword-label">
103103
You can enter a maximum of 50 characters per keyword
104104
</div>
105105
</div>

0 commit comments

Comments
 (0)