hmrc-frontend 4.1.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hmrc/VERSION.txt +1 -1
- package/hmrc/components/banner/_banner.scss +11 -0
- package/hmrc/components/header/template.njk +2 -2
- package/hmrc/components/internal-header/_internal-header.scss +10 -0
- package/hmrc/components/page-heading/template.njk +1 -1
- package/hmrc/{hmrc-frontend-4.1.0.min.css → hmrc-frontend-4.4.0.min.css} +2 -2
- package/hmrc/{hmrc-frontend-4.1.0.min.js → hmrc-frontend-4.4.0.min.js} +1 -1
- package/hmrc/{hmrc-frontend-ie8-4.1.0.min.css → hmrc-frontend-ie8-4.4.0.min.css} +2 -2
- package/hmrc/maps/hmrc-frontend-4.4.0.min.css.map +1 -0
- package/hmrc/maps/{hmrc-frontend-4.1.0.min.js.map → hmrc-frontend-4.4.0.min.js.map} +1 -1
- package/hmrc/maps/hmrc-frontend-ie8-4.4.0.min.css.map +1 -0
- package/package.json +1 -1
- package/hmrc/maps/hmrc-frontend-4.1.0.min.css.map +0 -1
- package/hmrc/maps/hmrc-frontend-ie8-4.1.0.min.css.map +0 -1
package/hmrc/VERSION.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.
|
|
1
|
+
4.4.0
|
|
@@ -3,14 +3,25 @@
|
|
|
3
3
|
padding: 10px 0 6px;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
@media (forced-colors: active) {
|
|
7
|
+
.hmrc-organisation-logo {
|
|
8
|
+
svg {
|
|
9
|
+
forced-color-adjust: none;
|
|
10
|
+
color: canvastext;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
6
15
|
.hmrc-organisation-logo {
|
|
7
16
|
margin: 0 35px 0 0;
|
|
8
17
|
padding: 4px 0 4px 5px;
|
|
9
18
|
border-left: 2px solid govuk-organisation-colour("hm-revenue-customs");
|
|
19
|
+
color: govuk-colour("black");
|
|
10
20
|
|
|
11
21
|
svg,
|
|
12
22
|
img {
|
|
13
23
|
vertical-align: middle;
|
|
24
|
+
fill: currentColor;
|
|
14
25
|
}
|
|
15
26
|
|
|
16
27
|
p {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{% from "govuk/components/phase-banner/macro.njk" import govukPhaseBanner %}
|
|
5
5
|
|
|
6
6
|
<header role="banner">
|
|
7
|
-
<div class="govuk-header hmrc-header {{ params.classes if params.classes }} {{ 'hmrc-header--with-additional-navigation' if params.signOutHref or params.languageToggle }}" data-module="header"
|
|
7
|
+
<div class="govuk-header hmrc-header {{ params.classes if params.classes }} {{ 'hmrc-header--with-additional-navigation' if params.signOutHref or params.languageToggle }}" data-module="govuk-header"
|
|
8
8
|
{%- for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
9
9
|
<div class="govuk-header__container {{ params.containerClasses | default('govuk-width-container') }}">
|
|
10
10
|
<div class="govuk-header__logo">
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
{% if params.navigation | length %}
|
|
70
70
|
<nav class="govuk-header__navigation" aria-label="Top Level Navigation">
|
|
71
71
|
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" aria-label="Show or hide Top Level Navigation">Menu</button>
|
|
72
|
-
<ul id="navigation" class="govuk-header__navigation-list
|
|
72
|
+
<ul id="navigation" class="govuk-header__navigation-list{{ (' ' + params.navigationClasses) if params.navigationClasses }}">
|
|
73
73
|
{% for item in params.navigation %}
|
|
74
74
|
{% if item.href and (item.text or item.html) %}
|
|
75
75
|
<li class="govuk-header__navigation-item{{ ' govuk-header__navigation-item--active' if item.active }}">
|
|
@@ -14,6 +14,15 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
@media (forced-colors: active) {
|
|
18
|
+
.hmrc-internal-header__logo-link {
|
|
19
|
+
svg {
|
|
20
|
+
forced-color-adjust: none;
|
|
21
|
+
color: linktext;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
17
26
|
.hmrc-internal-header__logo,
|
|
18
27
|
.hmrc-internal-header__service-name {
|
|
19
28
|
-webkit-box-sizing: border-box;
|
|
@@ -42,6 +51,7 @@
|
|
|
42
51
|
svg {
|
|
43
52
|
float: left;
|
|
44
53
|
vertical-align: top;
|
|
54
|
+
fill: currentColor;
|
|
45
55
|
}
|
|
46
56
|
|
|
47
57
|
img {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<header class="hmrc-page-heading">
|
|
2
2
|
<h1 class="govuk-heading-xl">{{ params.text }}</h1>
|
|
3
3
|
{%- if params.section -%}
|
|
4
|
-
<p class="govuk-caption-xl hmrc-caption-xl"><span class="govuk-visually-hidden">This section is </span>{{ params.section }}</p>
|
|
4
|
+
<p class="govuk-caption-xl hmrc-caption-xl"><span class="govuk-visually-hidden">{% if params.language === 'cy' %}Teitl yr adran hon yw{%else%}This section is{%endif%} </span>{{ params.section }}</p>
|
|
5
5
|
{%- endif -%}
|
|
6
6
|
</header>
|