govuk-frontend
Advanced tools
Comparing version 3.4.0 to 3.5.0
@@ -90,3 +90,17 @@ [ | ||
"description": "HTML attributes (for example data attributes) to add to the textarea." | ||
}, | ||
{ | ||
"name": "countMessage", | ||
"type": "object", | ||
"required": false, | ||
"description": "Options for the count message", | ||
"params": [ | ||
{ | ||
"name": "classes", | ||
"type": "string", | ||
"required": false, | ||
"description": "Classes to add to the count message" | ||
} | ||
] | ||
} | ||
] |
@@ -5,3 +5,3 @@ [ | ||
"type": "string", | ||
"required": false, | ||
"required": true, | ||
"description": "This is used for the main component and to compose id attribute for each item." | ||
@@ -8,0 +8,0 @@ }, |
@@ -18,3 +18,3 @@ [ | ||
"required": false, | ||
"description": "If `descriptionHtml` is set, this is not required. Text to use for the description of the errors. If `descriptionHtml` is provided, `descriptionText` will be ignored." | ||
"description": "Text to use for the description of the errors. If you set `descriptionHtml`, the component will ignore `descriptionText`." | ||
}, | ||
@@ -24,4 +24,4 @@ { | ||
"type": "string", | ||
"required": true, | ||
"description": "If `descriptionText` is set, this is not required. HTML to use for the description of the errors. If `descriptionHtml` is provided, `descriptionText` will be ignored." | ||
"required": false, | ||
"description": "HTML to use for the description of the errors. If you set this option, the component will ignore `descriptionText`." | ||
}, | ||
@@ -28,0 +28,0 @@ { |
@@ -9,3 +9,3 @@ # Hint | ||
The label component is used in other input components, to see an example of it in use see the [text input component](https://design-system.service.gov.uk/components/text-input/#using-hint-text). | ||
The hint component is used in other input components. To see an example of it in use, see the [text input component](https://design-system.service.gov.uk/components/text-input/#hint-text). | ||
@@ -12,0 +12,0 @@ ## Component options |
@@ -9,3 +9,3 @@ # Label | ||
The label component is used in other input components, to see an example of it in use see the [text input component](https://design-system.service.gov.uk/components/text-input/). | ||
The label component is used in other input components. To see an example of it in use, see the [text input component](https://design-system.service.gov.uk/components/text-input/). | ||
@@ -12,0 +12,0 @@ ## Component options |
@@ -759,3 +759,4 @@ (function (global, factory) { | ||
// Polyfill from https://github.com/Financial-Times/polyfill-service/pull/1062/files#diff-404b69b4750d18dea4174930a49170fd | ||
// There is no polyfill in polyfill-library (https://github.com/Financial-Times/polyfill-library/issues/338) | ||
// So we source this from https://github.com/Alhadis/Snippets/blob/e09b4dfb7ffc9e250bc28319051e39ead3e5f70a/js/polyfills/IE8-child-elements.js#L28-L33 | ||
Object.defineProperty(Element.prototype, "nextElementSibling", { | ||
@@ -765,3 +766,3 @@ get: function(){ | ||
while (el && el.nodeType !== 1) { el = el.nextSibling; } | ||
return (el.nodeType === 1) ? el : null; | ||
return el; | ||
} | ||
@@ -784,3 +785,4 @@ }); | ||
(function (global) { | ||
// Polyfill from https://github.com/Financial-Times/polyfill-service/pull/1062/files#diff-b45a1197b842728cb76b624b6ba7d739 | ||
// There is no polyfill in polyfill-library (https://github.com/Financial-Times/polyfill-library/issues/338) | ||
// So we source this from https://github.com/Alhadis/Snippets/blob/e09b4dfb7ffc9e250bc28319051e39ead3e5f70a/js/polyfills/IE8-child-elements.js#L35-L40 | ||
Object.defineProperty(Element.prototype, 'previousElementSibling', { | ||
@@ -790,3 +792,3 @@ get: function(){ | ||
while (el && el.nodeType !== 1) { el = el.previousSibling; } | ||
return (el.nodeType === 1) ? el : null; | ||
return el; | ||
} | ||
@@ -793,0 +795,0 @@ }); |
@@ -246,3 +246,4 @@ (function (global, factory) { | ||
// Polyfill from https://github.com/Financial-Times/polyfill-service/pull/1062/files#diff-404b69b4750d18dea4174930a49170fd | ||
// There is no polyfill in polyfill-library (https://github.com/Financial-Times/polyfill-library/issues/338) | ||
// So we source this from https://github.com/Alhadis/Snippets/blob/e09b4dfb7ffc9e250bc28319051e39ead3e5f70a/js/polyfills/IE8-child-elements.js#L28-L33 | ||
Object.defineProperty(Element.prototype, "nextElementSibling", { | ||
@@ -252,3 +253,3 @@ get: function(){ | ||
while (el && el.nodeType !== 1) { el = el.nextSibling; } | ||
return (el.nodeType === 1) ? el : null; | ||
return el; | ||
} | ||
@@ -255,0 +256,0 @@ }); |
@@ -244,3 +244,4 @@ (function (global, factory) { | ||
(function (global) { | ||
// Polyfill from https://github.com/Financial-Times/polyfill-service/pull/1062/files#diff-b45a1197b842728cb76b624b6ba7d739 | ||
// There is no polyfill in polyfill-library (https://github.com/Financial-Times/polyfill-library/issues/338) | ||
// So we source this from https://github.com/Alhadis/Snippets/blob/e09b4dfb7ffc9e250bc28319051e39ead3e5f70a/js/polyfills/IE8-child-elements.js#L35-L40 | ||
Object.defineProperty(Element.prototype, 'previousElementSibling', { | ||
@@ -250,3 +251,3 @@ get: function(){ | ||
while (el && el.nodeType !== 1) { el = el.previousSibling; } | ||
return (el.nodeType === 1) ? el : null; | ||
return el; | ||
} | ||
@@ -253,0 +254,0 @@ }); |
{ | ||
"name": "govuk-frontend", | ||
"description": "GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"main": "govuk/all.js", | ||
@@ -6,0 +6,0 @@ "sass": "govuk/all.scss", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1026965
13469