-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release v3.5.0 #1706
Merged
Merged
Release v3.5.0 #1706
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It looks like based on browser usage data autoprefixer is no longer including flexbox prefixes for webkit, which will affect Safari 8 and below, iOS 8.4 and below (both released October 2014) and Chrome 28 and below (2013). |
Changes to dist: diff --git a/dist/VERSION.txt b/dist/VERSION.txt
index 08dcadec..ae1ac7cc 100644
--- a/dist/VERSION.txt
+++ b/dist/VERSION.txt
@@ -1 +1 @@
-3.4.0
+3.5.0
diff --git a/dist/govuk-frontend-3.4.0.min.css b/dist/govuk-frontend-3.5.0.min.css
similarity index 19%
rename from dist/govuk-frontend-3.4.0.min.css
rename to dist/govuk-frontend-3.5.0.min.css
index d7f22db9..9c526ac3 100644
--- a/dist/govuk-frontend-3.4.0.min.css
+++ b/dist/govuk-frontend-3.5.0.min.css
@@ -972,7 +972,8 @@
.govuk-width-container {
max-width: 960px;
- margin: 0 15px
+ margin-right: 15px;
+ margin-left: 15px
}
@supports (margin:max(calc(0px))) {
@@ -984,7 +985,8 @@
@media (min-width:40.0625em) {
.govuk-width-container {
- margin: 0 30px
+ margin-right: 30px;
+ margin-left: 30px
}
@supports (margin:max(calc(0px))) {
@@ -997,12 +999,14 @@
@media (min-width:1020px) {
.govuk-width-container {
- margin: 0 auto
+ margin-right: auto;
+ margin-left: auto
}
@supports (margin:max(calc(0px))) {
.govuk-width-container {
- margin: 0 auto
+ margin-right: auto;
+ margin-left: auto
}
}
}
@@ -1658,12 +1662,10 @@
font-size: 1.125rem;
line-height: 1;
display: -webkit-inline-box;
- display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
min-height: auto;
-webkit-box-pack: center;
- -webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center
}
@@ -1686,10 +1688,8 @@
.govuk-button__start-icon {
margin-left: 5px;
vertical-align: middle;
- -webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
- -webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center
}
@@ -3057,18 +3057,6 @@
text-decoration: none
}
-.govuk-footer__inline-list .govuk-footer__link,
-.govuk-footer__list .govuk-footer__link {
- text-decoration: none
-}
-
-.govuk-footer__inline-list .govuk-footer__link:active:not(:focus),
-.govuk-footer__inline-list .govuk-footer__link:hover:not(:focus),
-.govuk-footer__list .govuk-footer__link:active:not(:focus),
-.govuk-footer__list .govuk-footer__link:hover:not(:focus) {
- text-decoration: underline
-}
-
.govuk-footer__section-break {
margin: 0 0 30px;
border: 0;
@@ -3083,20 +3071,16 @@
.govuk-footer__meta {
display: -webkit-box;
- display: -webkit-flex;
display: -ms-flexbox;
display: flex;
margin-right: -15px;
margin-left: -15px;
- -webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-align: end;
- -webkit-align-items: flex-end;
-ms-flex-align: end;
align-items: flex-end;
-webkit-box-pack: center;
- -webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center
}
@@ -3109,14 +3093,12 @@
.govuk-footer__meta-item--grow {
-webkit-box-flex: 1;
- -webkit-flex: 1;
-ms-flex: 1;
flex: 1
}
@media (max-width:40.0525em) {
.govuk-footer__meta-item--grow {
- -webkit-flex-basis: 320px;
-ms-flex-preferred-size: 320px;
flex-basis: 320px
}
@@ -3196,12 +3178,10 @@ only screen and (min-resolution:192dpi) {
.govuk-footer__navigation {
display: -webkit-box;
- display: -webkit-flex;
display: -ms-flexbox;
display: flex;
margin-right: -15px;
margin-left: -15px;
- -webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap
}
@@ -3213,17 +3193,14 @@ only screen and (min-resolution:192dpi) {
margin-left: 15px;
vertical-align: top;
-webkit-box-flex: 1;
- -webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
- -webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1
}
@media (max-width:48.0525em) {
.govuk-footer__section {
- -webkit-flex-basis: 200px;
-ms-flex-preferred-size: 200px;
flex-basis: 200px
}
@@ -3232,7 +3209,6 @@ only screen and (min-resolution:192dpi) {
@media (min-width:48.0625em) {
.govuk-footer__section:first-child:nth-last-child(2) {
-webkit-box-flex: 2;
- -webkit-flex-grow: 2;
-ms-flex-positive: 2;
flex-grow: 2
}
diff --git a/dist/govuk-frontend-3.4.0.min.js b/dist/govuk-frontend-3.5.0.min.js
similarity index 5%
rename from dist/govuk-frontend-3.4.0.min.js
rename to dist/govuk-frontend-3.5.0.min.js
index 4628cbe1..3e39c536 100644
--- a/dist/govuk-frontend-3.4.0.min.js
+++ b/dist/govuk-frontend-3.5.0.min.js
@@ -3,15 +3,15 @@
}(this, function(t) {
"use strict";
- function e(t, e) {
+ function r(t, e) {
if (window.NodeList.prototype.forEach) return t.forEach(e);
for (var n = 0; n < t.length; n++) e.call(window, t[n], n, t)
}
function n(t) {
- this.$module = t, this.moduleId = t.getAttribute("id"), this.$sections = t.querySelectorAll(".govuk-accordion__section"), this.$openAllButton = "", this.browserSupportsSessionStorage = o.checkForSessionStorage(), this.controlsClass = "govuk-accordion__controls", this.openAllClass = "govuk-accordion__open-all", this.iconClass = "govuk-accordion__icon", this.sectionHeaderClass = "govuk-accordion__section-header", this.sectionHeaderFocusedClass = "govuk-accordion__section-header--focused", this.sectionHeadingClass = "govuk-accordion__section-heading", this.sectionSummaryClass = "govuk-accordion__section-summary", this.sectionButtonClass = "govuk-accordion__section-button", this.sectionExpandedClass = "govuk-accordion__section--expanded"
+ this.$module = t, this.moduleId = t.getAttribute("id"), this.$sections = t.querySelectorAll(".govuk-accordion__section"), this.$openAllButton = "", this.browserSupportsSessionStorage = e.checkForSessionStorage(), this.controlsClass = "govuk-accordion__controls", this.openAllClass = "govuk-accordion__open-all", this.iconClass = "govuk-accordion__icon", this.sectionHeaderClass = "govuk-accordion__section-header", this.sectionHeaderFocusedClass = "govuk-accordion__section-header--focused", this.sectionHeadingClass = "govuk-accordion__section-heading", this.sectionSummaryClass = "govuk-accordion__section-summary", this.sectionButtonClass = "govuk-accordion__section-button", this.sectionExpandedClass = "govuk-accordion__section--expanded"
}(function(t) {
- var e, n, o, i;
+ var a, c, l, u;
"defineProperty" in Object && function() {
try {
return Object.defineProperty({}, "test", {
@@ -20,150 +20,149 @@
} catch (t) {
return !1
}
- }() || (e = Object.defineProperty, n = Object.prototype.hasOwnProperty("__defineGetter__"), o = "Getters & setters cannot be defined on this javascript engine", i = "A property cannot both have accessors and be writable or have a value", Object.defineProperty = function(t, r, s) {
- if (e && (t === window || t === document || t === Element.prototype || t instanceof Element)) return e(t, r, s);
+ }() || (a = Object.defineProperty, c = Object.prototype.hasOwnProperty("__defineGetter__"), l = "Getters & setters cannot be defined on this javascript engine", u = "A property cannot both have accessors and be writable or have a value", Object.defineProperty = function(t, e, n) {
+ if (a && (t === window || t === document || t === Element.prototype || t instanceof Element)) return a(t, e, n);
if (null === t || !(t instanceof Object || "object" == typeof t)) throw new TypeError("Object.defineProperty called on non-object");
- if (!(s instanceof Object)) throw new TypeError("Property description must be an object");
- var a = String(r),
- c = "value" in s || "writable" in s,
- l = "get" in s && typeof s.get,
- u = "set" in s && typeof s.set;
- if (l) {
- if ("function" !== l) throw new TypeError("Getter must be a function");
- if (!n) throw new TypeError(o);
- if (c) throw new TypeError(i);
- Object.__defineGetter__.call(t, a, s.get)
- } else t[a] = s.value;
- if (u) {
- if ("function" !== u) throw new TypeError("Setter must be a function");
- if (!n) throw new TypeError(o);
- if (c) throw new TypeError(i);
- Object.__defineSetter__.call(t, a, s.set)
+ if (!(n instanceof Object)) throw new TypeError("Property description must be an object");
+ var o = String(e),
+ i = "value" in n || "writable" in n,
+ r = "get" in n && typeof n.get,
+ s = "set" in n && typeof n.set;
+ if (r) {
+ if ("function" !== r) throw new TypeError("Getter must be a function");
+ if (!c) throw new TypeError(l);
+ if (i) throw new TypeError(u);
+ Object.__defineGetter__.call(t, o, n.get)
+ } else t[o] = n.value;
+ if (s) {
+ if ("function" !== s) throw new TypeError("Setter must be a function");
+ if (!c) throw new TypeError(l);
+ if (i) throw new TypeError(u);
+ Object.__defineSetter__.call(t, o, n.set)
}
- return "value" in s && (t[a] = s.value), t
+ return "value" in n && (t[o] = n.value), t
})
}).call("object" == typeof window && window || "object" == typeof self && self || "object" == typeof global && global || {}),
function(t) {
"bind" in Function.prototype || Object.defineProperty(Function.prototype, "bind", {
- value: function(t) {
- var e, n = Array,
+ value: function(e) {
+ var n, t = Array,
o = Object,
i = o.prototype,
- r = n.prototype,
- s = function() {},
+ r = t.prototype,
+ s = function s() {},
a = i.toString,
c = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag,
- l = Function.prototype.toString;
- e = function(t) {
- if ("function" != typeof t) return !1;
- if (c) return function(t) {
+ l = Function.prototype.toString,
+ u = function u(t) {
try {
return l.call(t), !0
} catch (e) {
return !1
}
- }(t);
+ };
+ n = function n(t) {
+ if ("function" != typeof t) return !1;
+ if (c) return u(t);
var e = a.call(t);
return "[object Function]" === e || "[object GeneratorFunction]" === e
};
- var u = r.slice,
- d = r.concat,
- p = r.push,
- h = Math.max,
- f = this;
- if (!e(f)) throw new TypeError("Function.prototype.bind called on incompatible " + f);
- for (var b, m = u.call(arguments, 1), y = h(0, f.length - m.length), v = [], g = 0; g < y; g++) p.call(v, "$" + g);
- return b = Function("binder", "return function (" + v.join(",") + "){ return binder.apply(this, arguments); }")(function() {
- if (this instanceof b) {
- var e = f.apply(this, d.call(m, u.call(arguments)));
- return o(e) === e ? e : this
+ var d = r.slice,
+ p = r.concat,
+ h = r.push,
+ f = Math.max,
+ b = this;
+ if (!n(b)) throw new TypeError("Function.prototype.bind called on incompatible " + b);
+ for (var m, y = d.call(arguments, 1), v = f(0, b.length - y.length), g = [], w = 0; w < v; w++) h.call(g, "$" + w);
+ return m = Function("binder", "return function (" + g.join(",") + "){ return binder.apply(this, arguments); }")(function() {
+ if (this instanceof m) {
+ var t = b.apply(this, p.call(y, d.call(arguments)));
+ return o(t) === t ? t : this
}
- return f.apply(t, d.call(m, u.call(arguments)))
- }), f.prototype && (s.prototype = f.prototype, b.prototype = new s, s.prototype = null), b
+ return b.apply(e, p.call(y, d.call(arguments)))
+ }), b.prototype && (s.prototype = b.prototype, m.prototype = new s, s.prototype = null), m
}
})
}.call("object" == typeof window && window || "object" == typeof self && self || "object" == typeof global && global || {}),
- function(t) {
- var e, n, o;
- "DOMTokenList" in this && (!("classList" in (e = document.createElement("x"))) || !e.classList.toggle("x", !1) && !e.className) || ("DOMTokenList" in (n = this) && n.DOMTokenList && (!document.createElementNS || !document.createElementNS("http://www.w3.org/2000/svg", "svg") || document.createElementNS("http://www.w3.org/2000/svg", "svg").classList instanceof DOMTokenList) || (n.DOMTokenList = function() {
- var e = !0,
- n = function(t, n, o, i) {
- Object.defineProperty ? Object.defineProperty(t, n, {
- configurable: !1 === e || !!i,
- get: o
- }) : t.__defineGetter__(n, o)
+ function(o) {
+ var t, e, n;
+ "DOMTokenList" in this && (!("classList" in (t = document.createElement("x"))) || !t.classList.toggle("x", !1) && !t.className) || ("DOMTokenList" in (e = this) && e.DOMTokenList && (!document.createElementNS || !document.createElementNS("http://www.w3.org/2000/svg", "svg") || document.createElementNS("http://www.w3.org/2000/svg", "svg").classList instanceof DOMTokenList) || (e.DOMTokenList = function() {
+ var i = !0,
+ n = function(t, e, n, o) {
+ Object.defineProperty ? Object.defineProperty(t, e, {
+ configurable: !1 === i || !!o,
+ get: n
+ }) : t.__defineGetter__(e, n)
};
try {
n({}, "support")
- } catch (o) {
- e = !1
+ } catch (t) {
+ i = !1
}
- return function(e, o) {
- var i = this,
- r = [],
- s = {},
- a = 0,
- c = 0,
- l = function(t) {
- n(i, t, function() {
- return d(), r[t]
+ return function(i, r) {
+ var s = this,
+ a = [],
+ c = {},
+ l = 0,
+ t = 0,
+ e = function(t) {
+ n(s, t, function() {
+ return d(), a[t]
}, !1)
},
u = function() {
- if (a >= c)
- for (; c < a; ++c) l(c)
+ if (t <= l)
+ for (; t < l; ++t) e(t)
},
d = function() {
- var t, n, i = arguments,
- c = /\s+/;
- if (i.length)
- for (n = 0; n < i.length; ++n)
- if (c.test(i[n])) throw (t = new SyntaxError('String "' + i[n] + '" contains an invalid character')).code = 5, t.name = "InvalidCharacterError", t;
- for ("" === (r = "object" == typeof e[o] ? ("" + e[o].baseVal).replace(/^\s+|\s+$/g, "").split(c) : ("" + e[o]).replace(/^\s+|\s+$/g, "").split(c))[0] && (r = []), s = {}, n = 0; n < r.length; ++n) s[r[n]] = !0;
- a = r.length, u()
+ var t, e, n = arguments,
+ o = /\s+/;
+ if (n.length)
+ for (e = 0; e < n.length; ++e)
+ if (o.test(n[e])) throw (t = new SyntaxError('String "' + n[e] + '" contains an invalid character')).code = 5, t.name = "InvalidCharacterError", t;
+ for ("" === (a = "object" == typeof i[r] ? ("" + i[r].baseVal).replace(/^\s+|\s+$/g, "").split(o) : ("" + i[r]).replace(/^\s+|\s+$/g, "").split(o))[0] && (a = []), c = {}, e = 0; e < a.length; ++e) c[a[e]] = !0;
+ l = a.length, u()
};
- return d(), n(i, "length", function() {
- return d(), a
- }), i.toLocaleString = i.toString = function() {
- return d(), r.join(" ")
- }, i.item = function(t) {
- return d(), r[t]
- }, i.contains = function(t) {
- return d(), !!s[t]
- }, i.add = function() {
- d.apply(i, t = arguments);
- for (var t, n, c = 0, l = t.length; c < l; ++c) n = t[c], s[n] || (r.push(n), s[n] = !0);
- a !== r.length && (a = r.length >>> 0, "object" == typeof e[o] ? e[o].baseVal = r.join(" ") : e[o] = r.join(" "), u())
- }, i.remove = function() {
- d.apply(i, t = arguments);
- for (var t, n = {}, c = 0, l = []; c < t.length; ++c) n[t[c]] = !0, delete s[t[c]];
- for (c = 0; c < r.length; ++c) n[r[c]] || l.push(r[c]);
- r = l, a = l.length >>> 0, "object" == typeof e[o] ? e[o].baseVal = r.join(" ") : e[o] = r.join(" "), u()
- }, i.toggle = function(e, n) {
- return d.apply(i, [e]), t !== n ? n ? (i.add(e), !0) : (i.remove(e), !1) : s[e] ? (i.remove(e), !1) : (i.add(e), !0)
- }, i
- }
- }()), "classList" in (o = document.createElement("span")) && (o.classList.toggle("x", !1), o.classList.contains("x") && (o.classList.constructor.prototype.toggle = function(e) {
- var n = arguments[1];
- if (n === t) {
- var o = !this.contains(e);
- return this[o ? "add" : "remove"](e), o
+ return d(), n(s, "length", function() {
+ return d(), l
+ }), s.toLocaleString = s.toString = function() {
+ return d(), a.join(" ")
+ }, s.item = function(t) {
+ return d(), a[t]
+ }, s.contains = function(t) {
+ return d(), !!c[t]
+ }, s.add = function() {
+ d.apply(s, t = arguments);
+ for (var t, e, n = 0, o = t.length; n < o; ++n) c[e = t[n]] || (a.push(e), c[e] = !0);
+ l !== a.length && (l = a.length >>> 0, "object" == typeof i[r] ? i[r].baseVal = a.join(" ") : i[r] = a.join(" "), u())
+ }, s.remove = function() {
+ d.apply(s, t = arguments);
+ for (var t, e = {}, n = 0, o = []; n < t.length; ++n) e[t[n]] = !0, delete c[t[n]];
+ for (n = 0; n < a.length; ++n) e[a[n]] || o.push(a[n]);
+ l = (a = o).length >>> 0, "object" == typeof i[r] ? i[r].baseVal = a.join(" ") : i[r] = a.join(" "), u()
+ }, s.toggle = function(t, e) {
+ return d.apply(s, [t]), o !== e ? e ? (s.add(t), !0) : (s.remove(t), !1) : c[t] ? (s.remove(t), !1) : (s.add(t), !0)
+ }, s
}
- return this[(n = !!n) ? "add" : "remove"](e), n
+ }()), "classList" in (n = document.createElement("span")) && (n.classList.toggle("x", !1), n.classList.contains("x") && (n.classList.constructor.prototype.toggle = function(t) {
+ var e = arguments[1];
+ if (e !== o) return this[(e = !!e) ? "add" : "remove"](t), e;
+ var n = !this.contains(t);
+ return this[n ? "add" : "remove"](t), n
})), function() {
var t = document.createElement("span");
if ("classList" in t && (t.classList.add("a", "b"), !t.classList.contains("b"))) {
- var e = t.classList.constructor.prototype.add;
+ var o = t.classList.constructor.prototype.add;
t.classList.constructor.prototype.add = function() {
- for (var t = arguments, n = arguments.length, o = 0; o < n; o++) e.call(this, t[o])
+ for (var t = arguments, e = arguments.length, n = 0; n < e; n++) o.call(this, t[n])
}
}
}(), function() {
var t = document.createElement("span");
if ("classList" in t && (t.classList.add("a"), t.classList.add("b"), t.classList.remove("a", "b"), t.classList.contains("b"))) {
- var e = t.classList.constructor.prototype.remove;
+ var o = t.classList.constructor.prototype.remove;
t.classList.constructor.prototype.remove = function() {
- for (var t = arguments, n = arguments.length, o = 0; o < n; o++) e.call(this, t[o])
+ for (var t = arguments, e = arguments.length, n = 0; n < e; n++) o.call(this, t[n])
}
}
}())
@@ -177,68 +176,68 @@
window.Element = window.HTMLElement = new Function("return function Element() {}")();
var t, e = document.appendChild(document.createElement("body")),
n = e.appendChild(document.createElement("iframe")).contentWindow.document,
- o = Element.prototype = n.appendChild(n.createElement("*")),
- i = {},
- r = function(t, e) {
- var n, o, s, a = t.childNodes || [],
- c = -1;
+ a = Element.prototype = n.appendChild(n.createElement("*")),
+ c = {},
+ l = function(t, e) {
+ var n, o, i, r = t.childNodes || [],
+ s = -1;
if (1 === t.nodeType && t.constructor !== Element)
- for (n in t.constructor = Element, i) o = i[n], t[n] = o;
- for (; s = e && a[++c];) r(s, e);
+ for (n in t.constructor = Element, c) o = c[n], t[n] = o;
+ for (; i = e && r[++s];) l(i, e);
return t
},
- s = document.getElementsByTagName("*"),
- a = document.createElement,
- c = 100;
- o.attachEvent("onpropertychange", function(t) {
- for (var e, n = t.propertyName, r = !i.hasOwnProperty(n), a = o[n], c = i[n], l = -1; e = s[++l];) 1 === e.nodeType && (r || e[n] === c) && (e[n] = a);
- i[n] = a
- }), o.constructor = Element, o.hasAttribute || (o.hasAttribute = function(t) {
+ u = document.getElementsByTagName("*"),
+ o = document.createElement,
+ i = 100;
+ a.attachEvent("onpropertychange", function(t) {
+ for (var e, n = t.propertyName, o = !c.hasOwnProperty(n), i = a[n], r = c[n], s = -1; e = u[++s];) 1 === e.nodeType && (!o && e[n] !== r || (e[n] = i));
+ c[n] = i
+ }), a.constructor = Element, a.hasAttribute || (a.hasAttribute = function(t) {
return null !== this.getAttribute(t)
- }), l() || (document.onreadystatechange = l, t = setInterval(l, 25)), document.createElement = function(t) {
- var e = a(String(t).toLowerCase());
- return r(e)
+ }), r() || (document.onreadystatechange = r, t = setInterval(r, 25)), document.createElement = function(t) {
+ var e = o(String(t).toLowerCase());
+ return l(e)
}, document.removeChild(e)
} else window.HTMLElement = window.Element;
- function l() {
- return c-- || clearTimeout(t), !(!document.body || document.body.prototype || !/(complete|interactive)/.test(document.readyState)) && (r(document, !0), t && document.body.prototype && clearTimeout(t), !!document.body.prototype)
+ function r() {
+ return i-- || clearTimeout(t), !(!document.body || document.body.prototype || !/(complete|interactive)/.test(document.readyState)) && (l(document, !0), t && document.body.prototype && clearTimeout(t), !!document.body.prototype)
}
}()
}.call("object" == typeof window && window || "object" == typeof self && self || "object" == typeof global && global || {}),
function(t) {
var e;
"document" in this && "classList" in document.documentElement && "Element" in this && "classList" in Element.prototype && ((e = document.createElement("span")).classList.add("a", "b"), e.classList.contains("b")) || function(t) {
- var e = !0,
- n = function(t, n, o, i) {
- Object.defineProperty ? Object.defineProperty(t, n, {
- configurable: !1 === e || !!i,
- get: o
- }) : t.__defineGetter__(n, o)
+ var u = !0,
+ d = function(t, e, n, o) {
+ Object.defineProperty ? Object.defineProperty(t, e, {
+ configurable: !1 === u || !!o,
+ get: n
+ }) : t.__defineGetter__(e, n)
};
try {
- n({}, "support")
- } catch (i) {
- e = !1
+ d({}, "support")
+ } catch (e) {
+ u = !1
}
- var o = function(t, i, r) {
- n(t.prototype, i, function() {
- var t, s = this,
- a = "__defineGetter__DEFINE_PROPERTY" + i;
- if (s[a]) return t;
- if (s[a] = !0, !1 === e) {
- for (var c, l = o.mirror || document.createElement("div"), u = l.childNodes, d = u.length, p = 0; p < d; ++p)
- if (u[p]._R === s) {
- c = u[p];
+ var p = function(t, c, l) {
+ d(t.prototype, c, function() {
+ var t, e = this,
+ n = "__defineGetter__DEFINE_PROPERTY" + c;
+ if (e[n]) return t;
+ if (!(e[n] = !0) === u) {
+ for (var o, i = p.mirror || document.createElement("div"), r = i.childNodes, s = r.length, a = 0; a < s; ++a)
+ if (r[a]._R === e) {
+ o = r[a];
break
- } c || (c = l.appendChild(document.createElement("div"))), t = DOMTokenList.call(c, s, r)
- } else t = new DOMTokenList(s, r);
- return n(s, i, function() {
+ } o = o || i.appendChild(document.createElement("div")), t = DOMTokenList.call(o, e, l)
+ } else t = new DOMTokenList(e, l);
+ return d(e, c, function() {
return t
- }), delete s[a], t
+ }), delete e[n], t
}, !0)
};
- o(t.Element, "classList", "className"), o(t.HTMLElement, "classList", "className"), o(t.HTMLLinkElement, "relList", "rel"), o(t.HTMLAnchorElement, "relList", "rel"), o(t.HTMLAreaElement, "relList", "rel")
+ p(t.Element, "classList", "className"), p(t.HTMLElement, "classList", "className"), p(t.HTMLLinkElement, "relList", "rel"), p(t.HTMLAnchorElement, "relList", "rel"), p(t.HTMLAreaElement, "relList", "rel")
}(this)
}.call("object" == typeof window && window || "object" == typeof self && self || "object" == typeof global && global || {}), n.prototype.init = function() {
if (this.$module) {
@@ -251,38 +250,38 @@
var t = document.createElement("div");
t.setAttribute("class", this.controlsClass), t.appendChild(this.$openAllButton), this.$module.insertBefore(t, this.$module.firstChild), this.$openAllButton.addEventListener("click", this.onOpenOrCloseAllToggle.bind(this))
}, n.prototype.initSectionHeaders = function() {
- e(this.$sections, function(t, e) {
+ r(this.$sections, function(t, e) {
var n = t.querySelector("." + this.sectionHeaderClass);
this.initHeaderAttributes(n, e), this.setExpanded(this.isExpanded(t), t), n.addEventListener("click", this.onSectionToggle.bind(this, t)), this.setInitialState(t)
}.bind(this))
- }, n.prototype.initHeaderAttributes = function(t, e) {
+ }, n.prototype.initHeaderAttributes = function(e, t) {
var n = this,
- o = t.querySelector("." + this.sectionButtonClass),
- i = t.querySelector("." + this.sectionHeadingClass),
- r = t.querySelector("." + this.sectionSummaryClass),
+ o = e.querySelector("." + this.sectionButtonClass),
+ i = e.querySelector("." + this.sectionHeadingClass),
+ r = e.querySelector("." + this.sectionSummaryClass),
s = document.createElement("button");
- s.setAttribute("type", "button"), s.setAttribute("id", this.moduleId + "-heading-" + (e + 1)), s.setAttribute("aria-controls", this.moduleId + "-content-" + (e + 1));
+ s.setAttribute("type", "button"), s.setAttribute("id", this.moduleId + "-heading-" + (t + 1)), s.setAttribute("aria-controls", this.moduleId + "-content-" + (t + 1));
for (var a = 0; a < o.attributes.length; a++) {
var c = o.attributes.item(a);
s.setAttribute(c.nodeName, c.nodeValue)
}
- s.addEventListener("focusin", function(e) {
- t.classList.contains(n.sectionHeaderFocusedClass) || (t.className += " " + n.sectionHeaderFocusedClass)
- }), s.addEventListener("blur", function(e) {
- t.classList.remove(n.sectionHeaderFocusedClass)
- }), null != r && s.setAttribute("aria-describedby", this.moduleId + "-summary-" + (e + 1)), s.innerHTML = o.innerHTML, i.removeChild(o), i.appendChild(s);
+ s.addEventListener("focusin", function(t) {
+ e.classList.contains(n.sectionHeaderFocusedClass) || (e.className += " " + n.sectionHeaderFocusedClass)
+ }), s.addEventListener("blur", function(t) {
+ e.classList.remove(n.sectionHeaderFocusedClass)
+ }), null != r && s.setAttribute("aria-describedby", this.moduleId + "-summary-" + (t + 1)), s.innerHTML = o.innerHTML, i.removeChild(o), i.appendChild(s);
var l = document.createElement("span");
l.className = this.iconClass, l.setAttribute("aria-hidden", "true"), i.appendChild(l)
}, n.prototype.onSectionToggle = function(t) {
var e = this.isExpanded(t);
this.setExpanded(!e, t), this.storeState(t)
}, n.prototype.onOpenOrCloseAllToggle = function() {
- var t = this,
- n = this.$sections,
- o = !this.checkIfAllSectionsOpen();
- e(n, function(e) {
- t.setExpanded(o, e), t.storeState(e)
- }), t.updateOpenAllButton(o)
+ var e = this,
+ t = this.$sections,
+ n = !this.checkIfAllSectionsOpen();
+ r(t, function(t) {
+ e.setExpanded(n, t), e.storeState(t)
+ }), e.updateOpenAllButton(n)
}, n.prototype.setExpanded = function(t, e) {
e.querySelector("." + this.sectionButtonClass).setAttribute("aria-expanded", t), t ? e.classList.add(this.sectionExpandedClass) : e.classList.remove(this.sectionExpandedClass);
var n = this.checkIfAllSectionsOpen();
@@ -295,7 +294,7 @@
var e = t ? "Close all" : "Open all";
e += '<span class="govuk-visually-hidden"> sections</span>', this.$openAllButton.setAttribute("aria-expanded", t), this.$openAllButton.innerHTML = e
};
- var o = {
+ var e = {
checkForSessionStorage: function() {
var t, e = "this is the test string";
try {
@@ -329,8 +328,8 @@
t.constructor ? t.Window = t.constructor : (t.Window = t.constructor = new Function("return function Window() {}")()).prototype = this
}(this)
}.call("object" == typeof window && window || "object" == typeof self && self || "object" == typeof global && global || {}),
- function(t) {
- (function(t) {
+ function(r) {
+ ! function(t) {
if (!("Event" in t)) return !1;
if ("function" == typeof t.Event) return !0;
try {
@@ -338,8 +337,8 @@
} catch (e) {
return !1
}
- })(this) || function() {
- var e = {
+ }(this) && function() {
+ var n = {
click: 1,
dblclick: 1,
keyup: 1,
@@ -357,45 +356,45 @@
textinput: 1
};
if ("undefined" != typeof document && "undefined" != typeof window) {
- var n = window.Event && window.Event.prototype || null;
- window.Event = Window.prototype.Event = function(e, n) {
- if (!e) throw new Error("Not enough arguments");
- var o;
+ var t = window.Event && window.Event.prototype || null;
+ window.Event = Window.prototype.Event = function(t, e) {
+ if (!t) throw new Error("Not enough arguments");
+ var n;
if ("createEvent" in document) {
- o = document.createEvent("Event");
- var i = !(!n || n.bubbles === t) && n.bubbles,
- r = !(!n || n.cancelable === t) && n.cancelable;
- return o.initEvent(e, i, r), o
+ n = document.createEvent("Event");
+ var o = !(!e || e.bubbles === r) && e.bubbles,
+ i = !(!e || e.cancelable === r) && e.cancelable;
+ return n.initEvent(t, o, i), n
}
- return (o = document.createEventObject()).type = e, o.bubbles = !(!n || n.bubbles === t) && n.bubbles, o.cancelable = !(!n || n.cancelable === t) && n.cancelable, o
- }, n && Object.defineProperty(window.Event, "prototype", {
+ return (n = document.createEventObject()).type = t, n.bubbles = !(!e || e.bubbles === r) && e.bubbles, n.cancelable = !(!e || e.cancelable === r) && e.cancelable, n
+ }, t && Object.defineProperty(window.Event, "prototype", {
configurable: !1,
enumerable: !1,
writable: !0,
- value: n
+ value: t
}), "createEvent" in document || (window.addEventListener = Window.prototype.addEventListener = Document.prototype.addEventListener = Element.prototype.addEventListener = function() {
- var t = this,
- n = arguments[0],
- i = arguments[1];
- if (t === window && n in e) throw new Error("In IE8 the event: " + n + " is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");
- t._events || (t._events = {}), t._events[n] || (t._events[n] = function(e) {
- var n, i = t._events[e.type].list,
- r = i.slice(),
- s = -1,
- a = r.length;
- for (e.preventDefault = function() {
- !1 !== e.cancelable && (e.returnValue = !1)
- }, e.stopPropagation = function() {
- e.cancelBubble = !0
- }, e.stopImmediatePropagation = function() {
- e.cancelBubble = !0, e.cancelImmediate = !0
- }, e.currentTarget = t, e.relatedTarget = e.fromElement || null, e.target = e.target || e.srcElement || t, e.timeStamp = (new Date).getTime(), e.clientX && (e.pageX = e.clientX + document.documentElement.scrollLeft, e.pageY = e.clientY + document.documentElement.scrollTop); ++s < a && !e.cancelImmediate;) s in r && -1 !== o(i, n = r[s]) && "function" == typeof n && n.call(t, e)
- }, t._events[n].list = [], t.attachEvent && t.attachEvent("on" + n, t._events[n])), t._events[n].list.push(i)
+ var s = this,
+ t = arguments[0],
+ e = arguments[1];
+ if (s === window && t in n) throw new Error("In IE8 the event: " + t + " is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");
+ s._events || (s._events = {}), s._events[t] || (s._events[t] = function(t) {
+ var e, n = s._events[t.type].list,
+ o = n.slice(),
+ i = -1,
+ r = o.length;
+ for (t.preventDefault = function() {
+ !1 !== t.cancelable && (t.returnValue = !1)
+ }, t.stopPropagation = function() {
+ t.cancelBubble = !0
+ }, t.stopImmediatePropagation = function() {
+ t.cancelBubble = !0, t.cancelImmediate = !0
+ }, t.currentTarget = s, t.relatedTarget = t.fromElement || null, t.target = t.target || t.srcElement || s, t.timeStamp = (new Date).getTime(), t.clientX && (t.pageX = t.clientX + document.documentElement.scrollLeft, t.pageY = t.clientY + document.documentElement.scrollTop); ++i < r && !t.cancelImmediate;) i in o && -1 !== a(n, e = o[i]) && "function" == typeof e && e.call(s, t)
+ }, s._events[t].list = [], s.attachEvent && s.attachEvent("on" + t, s._events[t])), s._events[t].list.push(e)
}, window.removeEventListener = Window.prototype.removeEventListener = Document.prototype.removeEventListener = Element.prototype.removeEventListener = function() {
var t, e = this,
n = arguments[0],
- i = arguments[1];
- e._events && e._events[n] && e._events[n].list && -1 !== (t = o(e._events[n].list, i)) && (e._events[n].list.splice(t, 1), e._events[n].list.length || (e.detachEvent && e.detachEvent("on" + n, e._events[n]), delete e._events[n]))
+ o = arguments[1];
+ e._events && e._events[n] && e._events[n].list && -1 !== (t = a(e._events[n].list, o)) && (e._events[n].list.splice(t, 1), e._events[n].list.length || (e.detachEvent && e.detachEvent("on" + n, e._events[n]), delete e._events[n]))
}, window.dispatchEvent = Window.prototype.dispatchEvent = Document.prototype.dispatchEvent = Element.prototype.dispatchEvent = function(t) {
if (!arguments.length) throw new Error("Not enough arguments");
if (!t || "string" != typeof t.type) throw new Error("DOM Events Exception 0");
@@ -411,10 +410,8 @@
}
this.fireEvent("on" + n, t)
} catch (i) {
- t.target = e;
- do {
- t.currentTarget = e, "_events" in e && "function" == typeof e._events[n] && e._events[n].call(e, t), "function" == typeof e["on" + n] && e["on" + n].call(e, t), e = 9 === e.nodeType ? e.parentWindow : e.parentNode
- } while (e && !t.cancelBubble)
+ for (t.target = e;
+ "_events" in (t.currentTarget = e) && "function" == typeof e._events[n] && e._events[n].call(e, t), "function" == typeof e["on" + n] && e["on" + n].call(e, t), (e = 9 === e.nodeType ? e.parentWindow : e.parentNode) && !t.cancelBubble;);
}
return !0
}, document.attachEvent("onreadystatechange", function() {
@@ -424,7 +421,7 @@
}))
}
- function o(t, e) {
+ function a(t, e) {
for (var n = -1, o = t.length; ++n < o;)
if (n in t && t[n] === e) return n;
return -1
@@ -432,21 +429,21 @@
}()
}.call("object" == typeof window && window || "object" == typeof self && self || "object" == typeof global && global || {});
- function i(t) {
+ function o(t) {
this.$module = t, this.debounceFormSubmitTimer = null
}
- i.prototype.handleKeyDown = function(t) {
+ o.prototype.handleKeyDown = function(t) {
var e = t.target;
"button" === e.getAttribute("role") && 32 === t.keyCode && (t.preventDefault(), e.click())
- }, i.prototype.debounce = function(t) {
+ }, o.prototype.debounce = function(t) {
if ("true" === t.target.getAttribute("data-prevent-double-click")) return this.debounceFormSubmitTimer ? (t.preventDefault(), !1) : void(this.debounceFormSubmitTimer = setTimeout(function() {
this.debounceFormSubmitTimer = null
}.bind(this), 1e3))
- }, i.prototype.init = function() {
+ }, o.prototype.init = function() {
this.$module.addEventListener("keydown", this.handleKeyDown), this.$module.addEventListener("click", this.debounce)
};
- function r(t) {
+ function i(t) {
this.$module = t
}
@@ -478,31 +475,34 @@
down: 40
}, this.jsHiddenClass = "govuk-tabs__panel--hidden"
}
- r.prototype.init = function() {
+ i.prototype.init = function() {
this.$module && ("boolean" == typeof this.$module.open || this.polyfillDetails())
- }, r.prototype.polyfillDetails = function() {
- var t, e = this.$module,
- n = this.$summary = e.getElementsByTagName("summary").item(0),
- o = this.$content = e.getElementsByTagName("div").item(0);
- n && o && (o.id || (o.id = "details-content-" + (t = (new Date).getTime(), "undefined" != typeof window.performance && "function" == typeof window.performance.now && (t += window.performance.now()), "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
- var n = (t + 16 * Math.random()) % 16 | 0;
- return t = Math.floor(t / 16), ("x" === e ? n : 3 & n | 8).toString(16)
- }))), e.setAttribute("role", "group"), n.setAttribute("role", "button"), n.setAttribute("aria-controls", o.id), n.tabIndex = 0, !0 === (null !== e.getAttribute("open")) ? (n.setAttribute("aria-expanded", "true"), o.setAttribute("aria-hidden", "false")) : (n.setAttribute("aria-expanded", "false"), o.setAttribute("aria-hidden", "true"), o.style.display = "none"), this.polyfillHandleInputs(n, this.polyfillSetAttributes.bind(this)))
- }, r.prototype.polyfillSetAttributes = function() {
+ }, i.prototype.polyfillDetails = function() {
+ var t = this.$module,
+ e = this.$summary = t.getElementsByTagName("summary").item(0),
+ n = this.$content = t.getElementsByTagName("div").item(0);
+ e && n && (n.id || (n.id = "details-content-" + function o() {
+ var n = (new Date).getTime();
+ return "undefined" != typeof window.performance && "function" == typeof window.performance.now && (n += window.performance.now()), "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
+ var e = (n + 16 * Math.random()) % 16 | 0;
+ return n = Math.floor(n / 16), ("x" === t ? e : 3 & e | 8).toString(16)
+ })
+ }()), t.setAttribute("role", "group"), e.setAttribute("role", "button"), e.setAttribute("aria-controls", n.id), !(e.tabIndex = 0) == (null !== t.getAttribute("open")) ? (e.setAttribute("aria-expanded", "true"), n.setAttribute("aria-hidden", "false")) : (e.setAttribute("aria-expanded", "false"), n.setAttribute("aria-hidden", "true"), n.style.display = "none"), this.polyfillHandleInputs(e, this.polyfillSetAttributes.bind(this)))
+ }, i.prototype.polyfillSetAttributes = function() {
var t = this.$module,
e = this.$summary,
n = this.$content,
o = "true" === e.getAttribute("aria-expanded"),
i = "true" === n.getAttribute("aria-hidden");
return e.setAttribute("aria-expanded", o ? "false" : "true"), n.setAttribute("aria-hidden", i ? "false" : "true"), n.style.display = o ? "none" : "", null !== t.getAttribute("open") ? t.removeAttribute("open") : t.setAttribute("open", "open"), !0
- }, r.prototype.polyfillHandleInputs = function(t, e) {
+ }, i.prototype.polyfillHandleInputs = function(t, n) {
t.addEventListener("keypress", function(t) {
- var n = t.target;
- 13 !== t.keyCode && 32 !== t.keyCode || "summary" === n.nodeName.toLowerCase() && (t.preventDefault(), n.click ? n.click() : e(t))
+ var e = t.target;
+ 13 !== t.keyCode && 32 !== t.keyCode || "summary" === e.nodeName.toLowerCase() && (t.preventDefault(), e.click ? e.click() : n(t))
}), t.addEventListener("keyup", function(t) {
var e = t.target;
32 === t.keyCode && "summary" === e.nodeName.toLowerCase() && t.preventDefault()
- }), t.addEventListener("click", e)
+ }), t.addEventListener("click", n)
}, s.prototype.defaults = {
characterCountAttribute: "data-maxlength",
wordCountAttribute: "data-maxwords"
@@ -533,7 +533,7 @@
var t = this.$textarea;
t.addEventListener("keyup", this.checkIfValueChanged.bind(this)), t.addEventListener("focus", this.handleFocus.bind(this)), t.addEventListener("blur", this.handleBlur.bind(this))
}, s.prototype.checkIfValueChanged = function() {
- (this.$textarea.oldValue || (this.$textarea.oldValue = ""), this.$textarea.value !== this.$textarea.oldValue) && (this.$textarea.oldValue = this.$textarea.value, this.updateCountMessage.bind(this)())
+ this.$textarea.oldValue || (this.$textarea.oldValue = ""), this.$textarea.value !== this.$textarea.oldValue && (this.$textarea.oldValue = this.$textarea.value, this.updateCountMessage.bind(this)())
}, s.prototype.updateCountMessage = function() {
var t = this.$textarea,
e = this.options,
@@ -541,19 +541,19 @@
o = this.count(t.value),
i = this.maxLength,
r = i - o;
- i * (e.threshold ? e.threshold : 0) / 100 > o ? (n.classList.add("govuk-character-count__message--disabled"), n.setAttribute("aria-hidden", !0)) : (n.classList.remove("govuk-character-count__message--disabled"), n.removeAttribute("aria-hidden")), r < 0 ? (t.classList.add("govuk-textarea--error"), n.classList.remove("govuk-hint"), n.classList.add("govuk-error-message")) : (t.classList.remove("govuk-textarea--error"), n.classList.remove("govuk-error-message"), n.classList.add("govuk-hint"));
+ o < i * (e.threshold ? e.threshold : 0) / 100 ? (n.classList.add("govuk-character-count__message--disabled"), n.setAttribute("aria-hidden", !0)) : (n.classList.remove("govuk-character-count__message--disabled"), n.removeAttribute("aria-hidden")), r < 0 ? (t.classList.add("govuk-textarea--error"), n.classList.remove("govuk-hint"), n.classList.add("govuk-error-message")) : (t.classList.remove("govuk-textarea--error"), n.classList.remove("govuk-error-message"), n.classList.add("govuk-hint"));
var s, a, c = "character";
- e.maxwords && (c = "word"), c += -1 === r || 1 === r ? "" : "s", s = r < 0 ? "too many" : "remaining", a = Math.abs(r), n.innerHTML = "You have " + a + " " + c + " " + s
+ e.maxwords && (c = "word"), c += -1 == r || 1 == r ? "" : "s", s = r < 0 ? "too many" : "remaining", a = Math.abs(r), n.innerHTML = "You have " + a + " " + c + " " + s
}, s.prototype.handleFocus = function() {
this.valueChecker = setInterval(this.checkIfValueChanged.bind(this), 1e3)
}, s.prototype.handleBlur = function() {
clearInterval(this.valueChecker)
}, a.prototype.init = function() {
- var t = this.$module;
- e(this.$inputs, function(e) {
- var n = e.getAttribute("data-aria-controls");
- n && t.querySelector("#" + n) && (e.setAttribute("aria-controls", n), e.removeAttribute("data-aria-controls"), this.setAttributes(e))
- }.bind(this)), t.addEventListener("click", this.handleClick.bind(this))
+ var n = this.$module;
+ r(this.$inputs, function(t) {
+ var e = t.getAttribute("data-aria-controls");
+ e && n.querySelector("#" + e) && (t.setAttribute("aria-controls", e), t.removeAttribute("data-aria-controls"), this.setAttributes(t))
+ }.bind(this)), n.addEventListener("click", this.handleClick.bind(this))
}, a.prototype.setAttributes = function(t) {
var e = t.checked;
t.setAttribute("aria-expanded", e);
@@ -617,18 +617,18 @@
e && e.addEventListener("click", this.handleClick.bind(this))
}
}, l.prototype.toggleClass = function(t, e) {
- t.className.indexOf(e) > 0 ? t.className = t.className.replace(" " + e, "") : t.className += " " + e
+ 0 < t.className.indexOf(e) ? t.className = t.className.replace(" " + e, "") : t.className += " " + e
}, l.prototype.handleClick = function(t) {
var e = this.$module,
n = t.target || t.srcElement,
o = e.querySelector("#" + n.getAttribute("aria-controls"));
n && o && (this.toggleClass(o, "govuk-header__navigation--open"), this.toggleClass(n, "govuk-header__menu-button--open"), n.setAttribute("aria-expanded", "true" !== n.getAttribute("aria-expanded")), o.setAttribute("aria-hidden", "false" === o.getAttribute("aria-hidden")))
}, u.prototype.init = function() {
- var t = this.$module;
- e(t.querySelectorAll('input[type="radio"]'), function(e) {
- var n = e.getAttribute("data-aria-controls");
- n && t.querySelector("#" + n) && (e.setAttribute("aria-controls", n), e.removeAttribute("data-aria-controls"), this.setAttributes(e))
- }.bind(this)), t.addEventListener("click", this.handleClick.bind(this))
+ var n = this.$module;
+ r(n.querySelectorAll('input[type="radio"]'), function(t) {
+ var e = t.getAttribute("data-aria-controls");
+ e && n.querySelector("#" + e) && (t.setAttribute("aria-controls", e), t.removeAttribute("data-aria-controls"), this.setAttributes(t))
+ }.bind(this)), n.addEventListener("click", this.handleClick.bind(this))
}, u.prototype.setAttributes = function(t) {
var e = document.querySelector("#" + t.getAttribute("aria-controls"));
if (e && e.classList.contains("govuk-radios__conditional")) {
@@ -637,7 +637,7 @@
}
}, u.prototype.handleClick = function(t) {
var n = t.target;
- "radio" === n.type && e(document.querySelectorAll('input[type="radio"][aria-controls]'), function(t) {
+ "radio" === n.type && r(document.querySelectorAll('input[type="radio"][aria-controls]'), function(t) {
var e = t.form === n.form;
t.name === n.name && e && this.setAttributes(t)
}.bind(this))
@@ -646,7 +646,7 @@
"Element" in this && "nextElementSibling" in document.documentElement || Object.defineProperty(Element.prototype, "nextElementSibling", {
get: function() {
for (var t = this.nextSibling; t && 1 !== t.nodeType;) t = t.nextSibling;
- return 1 === t.nodeType ? t : null
+ return t
}
})
}.call("object" == typeof window && window || "object" == typeof self && self || "object" == typeof global && global || {}),
@@ -654,7 +654,7 @@
"Element" in this && "previousElementSibling" in document.documentElement || Object.defineProperty(Element.prototype, "previousElementSibling", {
get: function() {
for (var t = this.previousSibling; t && 1 !== t.nodeType;) t = t.previousSibling;
- return 1 === t.nodeType ? t : null
+ return t
}
})
}.call("object" == typeof window && window || "object" == typeof self && self || "object" == typeof global && global || {}), d.prototype.init = function() {
@@ -665,26 +665,26 @@
this.mql.matches ? this.setup() : this.teardown()
}, d.prototype.setup = function() {
var t = this.$module,
- n = this.$tabs,
- o = t.querySelector(".govuk-tabs__list"),
- i = t.querySelectorAll(".govuk-tabs__list-item");
- if (n && o && i) {
- o.setAttribute("role", "tablist"), e(i, function(t) {
+ e = this.$tabs,
+ n = t.querySelector(".govuk-tabs__list"),
+ o = t.querySelectorAll(".govuk-tabs__list-item");
+ if (e && n && o) {
+ n.setAttribute("role", "tablist"), r(o, function(t) {
t.setAttribute("role", "presentation")
- }), e(n, function(t) {
+ }), r(e, function(t) {
this.setAttributes(t), t.boundTabClick = this.onTabClick.bind(this), t.boundTabKeydown = this.onTabKeydown.bind(this), t.addEventListener("click", t.boundTabClick, !0), t.addEventListener("keydown", t.boundTabKeydown, !0), this.hideTab(t)
}.bind(this));
- var r = this.getTab(window.location.hash) || this.$tabs[0];
- this.showTab(r), t.boundOnHashChange = this.onHashChange.bind(this), window.addEventListener("hashchange", t.boundOnHashChange, !0)
+ var i = this.getTab(window.location.hash) || this.$tabs[0];
+ this.showTab(i), t.boundOnHashChange = this.onHashChange.bind(this), window.addEventListener("hashchange", t.boundOnHashChange, !0)
}
}, d.prototype.teardown = function() {
var t = this.$module,
- n = this.$tabs,
- o = t.querySelector(".govuk-tabs__list"),
- i = t.querySelectorAll(".govuk-tabs__list-item");
- n && o && i && (o.removeAttribute("role"), e(i, function(t) {
+ e = this.$tabs,
+ n = t.querySelector(".govuk-tabs__list"),
+ o = t.querySelectorAll(".govuk-tabs__list-item");
+ e && n && o && (n.removeAttribute("role"), r(o, function(t) {
t.removeAttribute("role", "presentation")
- }), e(n, function(t) {
+ }), r(e, function(t) {
t.removeEventListener("click", t.boundTabClick, !0), t.removeEventListener("keydown", t.boundTabKeydown, !0), this.unsetAttributes(t)
}.bind(this)), window.removeEventListener("hashchange", t.boundOnHashChange, !0))
}, d.prototype.onHashChange = function(t) {
@@ -756,22 +756,22 @@
}, d.prototype.getHref = function(t) {
var e = t.getAttribute("href");
return e.slice(e.indexOf("#"), e.length)
- }, t.initAll = function(t) {
- var o = "undefined" != typeof(t = void 0 !== t ? t : {}).scope ? t.scope : document;
- e(o.querySelectorAll('[data-module="govuk-button"]'), function(t) {
- new i(t).init()
- }), e(o.querySelectorAll('[data-module="govuk-accordion"]'), function(t) {
+ }, t.initAll = function p(t) {
+ var e = "undefined" != typeof(t = void 0 !== t ? t : {}).scope ? t.scope : document;
+ r(e.querySelectorAll('[data-module="govuk-button"]'), function(t) {
+ new o(t).init()
+ }), r(e.querySelectorAll('[data-module="govuk-accordion"]'), function(t) {
new n(t).init()
- }), e(o.querySelectorAll('[data-module="govuk-details"]'), function(t) {
- new r(t).init()
- }), e(o.querySelectorAll('[data-module="govuk-character-count"]'), function(t) {
+ }), r(e.querySelectorAll('[data-module="govuk-details"]'), function(t) {
+ new i(t).init()
+ }), r(e.querySelectorAll('[data-module="govuk-character-count"]'), function(t) {
new s(t).init()
- }), e(o.querySelectorAll('[data-module="govuk-checkboxes"]'), function(t) {
+ }), r(e.querySelectorAll('[data-module="govuk-checkboxes"]'), function(t) {
new a(t).init()
- }), new c(o.querySelector('[data-module="govuk-error-summary"]')).init(), new l(o.querySelector('[data-module="govuk-header"]')).init(), e(o.querySelectorAll('[data-module="govuk-radios"]'), function(t) {
+ }), new c(e.querySelector('[data-module="govuk-error-summary"]')).init(), new l(e.querySelector('[data-module="govuk-header"]')).init(), r(e.querySelectorAll('[data-module="govuk-radios"]'), function(t) {
new u(t).init()
- }), e(o.querySelectorAll('[data-module="govuk-tabs"]'), function(t) {
+ }), r(e.querySelectorAll('[data-module="govuk-tabs"]'), function(t) {
new d(t).init()
})
- }, t.Accordion = n, t.Button = i, t.Details = r, t.CharacterCount = s, t.Checkboxes = a, t.ErrorSummary = c, t.Header = l, t.Radios = u, t.Tabs = d
+ }, t.Accordion = n, t.Button = o, t.Details = i, t.CharacterCount = s, t.Checkboxes = a, t.ErrorSummary = c, t.Header = l, t.Radios = u, t.Tabs = d
});
\ No newline at end of file
diff --git a/dist/govuk-frontend-ie8-3.4.0.min.css b/dist/govuk-frontend-ie8-3.5.0.min.css
similarity index 14%
rename from dist/govuk-frontend-ie8-3.4.0.min.css
rename to dist/govuk-frontend-ie8-3.5.0.min.css
index f5a04d50..98c3f748 100644
--- a/dist/govuk-frontend-ie8-3.4.0.min.css
+++ b/dist/govuk-frontend-ie8-3.5.0.min.css
@@ -468,7 +468,8 @@
.govuk-width-container {
max-width: 960px;
width: 960px;
- margin: 0 auto
+ margin-right: auto;
+ margin-left: auto
}
@supports (margin:max(calc(0px))) {
@@ -990,12 +991,10 @@
font-size: 1.5rem;
line-height: 1;
display: -webkit-inline-box;
- display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
min-height: auto;
-webkit-box-pack: center;
- -webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center
}
@@ -1003,10 +1002,8 @@
.govuk-button__start-icon {
margin-left: 10px;
vertical-align: middle;
- -webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
- -webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center
}
@@ -1874,20 +1871,16 @@
.govuk-footer__meta {
display: -webkit-box;
- display: -webkit-flex;
display: -ms-flexbox;
display: flex;
margin-right: -15px;
margin-left: -15px;
- -webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-align: end;
- -webkit-align-items: flex-end;
-ms-flex-align: end;
align-items: flex-end;
-webkit-box-pack: center;
- -webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center
}
@@ -1900,7 +1893,6 @@
.govuk-footer__meta-item--grow {
-webkit-box-flex: 1;
- -webkit-flex: 1;
-ms-flex: 1;
flex: 1
}
@@ -1952,12 +1944,10 @@
.govuk-footer__navigation {
display: -webkit-box;
- display: -webkit-flex;
display: -ms-flexbox;
display: flex;
margin-right: -15px;
margin-left: -15px;
- -webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap
}
@@ -1969,17 +1959,14 @@
margin-left: 15px;
vertical-align: top;
-webkit-box-flex: 1;
- -webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
- -webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1
}
.govuk-footer__section:first-child:nth-last-child(2) {
-webkit-box-flex: 2;
- -webkit-flex-grow: 2;
-ms-flex-positive: 2;
flex-grow: 2
} |
hannalaakso
approved these changes
Jan 21, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New features
Add classes to the character count component's count message
If you're using Nunjucks, you can now add classes to the character count component's count message using the
countMessage.classes
option.Fixes
input type=text inputmode=numeric
.govuk-media-query
mixin.Closes #1706