govuk_frontend_toolkit 5.1.3 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10e14060edb1dcd3b797adabfa3408ee1e24b602
|
4
|
+
data.tar.gz: b3a7b2d53b0d3885cd1ece60fdd42061e14b4920
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cd4d8a1610f9a7d7422da67d6be2f587c9e4c2bb1e342822e4095bf6befb25dbf7765f3bd517f1699d82c6db8d57181b7b8b4ab719af9e6877249ec018db3b1
|
7
|
+
data.tar.gz: b062f6e142d07c95774fef6fe0b259803258de20702e27b419fc711795049d1b426150b946d34aebe43fbf097bfd9cc07652eb7507b817c4914010df2962e80d
|
data/app/assets/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# 5.2.0
|
2
|
+
|
3
|
+
- Deprecate selection-buttons.js. Add a deprecation warning: Custom radio buttons and checkboxes (released in GOV.UK Elements 3.0.0) no longer require this JavaScript.
|
4
|
+
|
1
5
|
# 5.1.3
|
2
6
|
|
3
7
|
- Add an experimental GOV.UK analytics tracker. Given the URL to a single pixel GIF, it will encode analytics data as query string parameters on the call to the GIF ([PR #387](https://github.com/alphagov/govuk_frontend_toolkit/pull/387))
|
data/app/assets/VERSION.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.
|
1
|
+
5.2.0
|
@@ -342,6 +342,8 @@ and stop the elements before they get to the bottom.
|
|
342
342
|
|
343
343
|
## Selection buttons
|
344
344
|
|
345
|
+
>If you are using GOV.UK Elements version 3.0.0 or above you *do not need* to include and initialise `GOVUK.SelectionButtons` to apply the correct radio button and checkbox styling. This module is deprecated and will be removed in the future.
|
346
|
+
|
345
347
|
`GOVUK.SelectionButtons` adds classes to a parent `<label>` of a radio button or checkbox, allowing you to style it based on the input’s state. Given this example HTML structure:
|
346
348
|
|
347
349
|
```html
|
@@ -1,6 +1,13 @@
|
|
1
|
+
// DEPRECATED
|
2
|
+
// This isn’t needed if you’re using GOV.UK Elements 3.0.0 or above
|
3
|
+
|
1
4
|
;(function (global) {
|
2
5
|
'use strict'
|
3
6
|
|
7
|
+
if (window.console && window.console.warn) {
|
8
|
+
window.console.warn('Deprecation warning: Custom radio buttons and checkboxes (released in GOV.UK Elements 3.0.0) no longer require this JavaScript.')
|
9
|
+
}
|
10
|
+
|
4
11
|
var $ = global.jQuery
|
5
12
|
var GOVUK = global.GOVUK || {}
|
6
13
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_frontend_toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Government Digital Service
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|