Skip to content

Commit 405baeb

Browse files
Merge pull request #719 from TechnologyEnhancedLearning/Develop/Fixes/TD-4072-DIG201-Content-has-heading-markup,-but-is-not-a-heading
TD-4072: DIG201 Content has heading markup, but is not a heading issue fixed
2 parents 1c0792f + bf06752 commit 405baeb

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeAuthorsTab.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
v-bind:inputId="authorName"
3232
v-bind:characterLimit="100"
3333
v-bind:disabled="authorIsContributor"
34+
:showTitle="false"
3435
class="mt-25">
3536
<template v-slot:description>
3637
<label :for="'authorName'" class="mb-0">Author name</label>
@@ -39,6 +40,7 @@
3940
<CharacterCount v-model="authorOrganisation"
4041
v-bind:inputId="authorOrganisation"
4142
v-bind:characterLimit="100"
43+
:showTitle="false"
4244
class="mt-15">
4345
<template v-slot:description>
4446
<label :for="'authorOrganisation'" class="mb-0">Organisation</label>
@@ -47,6 +49,7 @@
4749
<CharacterCount v-model="authorRole"
4850
v-bind:inputId="authorRole"
4951
v-bind:characterLimit="100"
52+
:showTitle="false"
5053
class="mt-15">
5154
<template v-slot:description>
5255
<label :for="'authorRole'" class="mb-0">Role</label>

LearningHub.Nhs.WebUI/Scripts/vuesrc/globalcomponents/CharacterCount.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
'character-count-component--error': (hasOtherError),
4242
'character-count-component--large': (size === 'large'),
4343
}">
44-
<h2 class="nhsuk-heading-l">
44+
<h2 class="nhsuk-heading-l" v-if="showTitle">
4545
<slot name="title"></slot>
4646
</h2>
4747
<div class="mb-2">
@@ -98,6 +98,10 @@
9898
disabled: Boolean,
9999
focusOnLoad: Boolean,
100100
size: String,
101+
showTitle: {
102+
default: true,
103+
type: Boolean
104+
}
101105
},
102106
data() {
103107
return {

LearningHub.Nhs.WebUI/Scripts/vuesrc/globalcomponents/CharacterCountWithSaveCancelButtons.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<CharacterCount v-model="inputValue"
44
v-bind:characterLimit="characterLimit"
55
v-bind:size="size"
6+
:showTitle="false"
67
focusOnLoad></CharacterCount>
78
<div class="d-inline-flex">
89
<Button v-on:click="save"

LearningHub.Nhs.WebUI/Views/Shared/Tenant/LearningHub/_Layout.cshtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,13 @@
7171
<partial name="_CookieConsentPartial" />
7272
</div>
7373

74-
<header class="nhsuk-header" role="banner" id="header">
74+
<header class="nhsuk-header" role="banner">
7575
<div id="content-header">
7676
<partial name="~/Views/Shared/_NavPartial.cshtml" />
7777
</div>
7878
</header>
79+
<div id="header">
80+
</div>
7981

8082
<div class="nhsuk-width-container app-width-container beta-banner">
8183
<span class="beta-banner__beta-box">BETA</span>

0 commit comments

Comments
 (0)