Skip to content

Commit c507690

Browse files
committed
Update on Default option, fixed accessibilty issues, upgraded some nuget packages
1 parent 16d1fe3 commit c507690

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

UK.NHS.CookieBanner.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
</PropertyGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="Dapper" Version="2.0.123" />
24-
<PackageReference Include="Microsoft.Data.SqlClient" Version="2.0.0" />
23+
<PackageReference Include="Dapper" Version="2.0.143" />
24+
<PackageReference Include="Microsoft.Data.SqlClient" Version="4.1.1" />
25+
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2526
</ItemGroup>
2627

2728
<!--<ItemGroup>

Views/CookieConsent/CookieConfirmation.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
</ol>
2121
<p class="nhsuk-breadcrumb__back">
2222
<a class="nhsuk-breadcrumb__link trigger-loader"
23-
asp-action="CookiePolicy"
24-
asp-controller="CookieConsent">Cookie Policy</a>
23+
asp-action=@policyActionName
24+
asp-controller=@policyControllerName>Cookie Policy</a>
2525
</p>
2626
</div>
2727
</nav>
2828
}
2929
</div>
30-
<div>
30+
<div class="nhsuk-u-padding-top-3">
3131
<div class="nhsuk-width-container app-width-container">
3232
<div class="nhsuk-grid-row">
3333
<div class="nhsuk-grid-column-full">

Views/Shared/_CookiePolicyConfirmation.cshtml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,22 @@
44
var model = Model;
55
TempData["Layout"] = (string.IsNullOrEmpty(model.Layout) ? "_Layout" : model.Layout);
66
model.Layout = TempData["Layout"].ToString();
7+
model.UserConsent = (string.IsNullOrEmpty(model.UserConsent) ? "false" : model.UserConsent);
78

89
if (model == null)
910
{
10-
model = new CookieConsentViewModel { UserConsent = "" };
11+
model = new CookieConsentViewModel { UserConsent = "false" };
1112
}
1213
}
1314
<form method="post" asp-controller="CookieConsent" asp-action="CookiePolicy">
1415
@Html.HiddenFor(model => model.Layout)
1516
<div class="nhsuk-u-reading-width">
1617
<p>We'll only use these cookies if you say it's OK. We'll use a cookie to save your settings.</p>
1718

18-
<h3>Tell us if we can use analytics cookies</h3>
19-
<fieldset class="nhsuk-fieldset" id="cookie-statistics-form" aria-describedby="cookie-statistics">
19+
<fieldset class="nhsuk-fieldset" id="cookie-statistics-form">
20+
<legend class="nhsuk-fieldset__legend nhsuk-fieldset__legend--l">
21+
<h3 class="nhsuk-fieldset__heading">Tell us if we can use analytics cookies</h3>
22+
</legend>
2023
<div class="nhsuk-radios nhsuk-radios--inline nhsuk-u-margin-bottom-6">
2124
<div class="nhsuk-radios__item">
2225
<input class="nhsuk-radios__input"

0 commit comments

Comments
 (0)