govuk_frontend_toolkit
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -0,1 +1,9 @@ | ||
# 3.1.0 | ||
- Fix: outdent to add right margin rather than only left | ||
- Fix: add missing semi-colons in JavaScript files | ||
- Fix: use box-sizing mixin in column mixin to support more browsers | ||
- Add: ability to specify float direction on column mixin | ||
- Add: Sass-lint tests | ||
# 3.0.1 | ||
@@ -2,0 +10,0 @@ |
@@ -14,3 +14,3 @@ (function() { | ||
} | ||
} | ||
}; | ||
PrimaryList.prototype = { | ||
@@ -25,3 +25,3 @@ toggleText: function(){ | ||
addToggleLink: function(){ | ||
this.$toggleLink = $('<a href="#">'+ this.toggleText() + '</a>') | ||
this.$toggleLink = $('<a href="#">'+ this.toggleText() + '</a>'); | ||
this.$toggleLink.click($.proxy(this.toggleLinks, this)); | ||
@@ -37,7 +37,7 @@ this.$toggleLink.insertAfter(this.$el); | ||
this.$extraLinks.addClass('visuallyhidden'); | ||
$(window).trigger('govuk.pageSizeChanged') | ||
$(window).trigger('govuk.pageSizeChanged'); | ||
}, | ||
showExtraLinks: function(){ | ||
this.$extraLinks.removeClass('visuallyhidden'); | ||
$(window).trigger('govuk.pageSizeChanged') | ||
$(window).trigger('govuk.pageSizeChanged'); | ||
} | ||
@@ -53,3 +53,3 @@ }; | ||
} | ||
} | ||
}; | ||
}()); |
(function () { | ||
"use strict" | ||
"use strict"; | ||
var root = this, | ||
@@ -55,3 +55,3 @@ $ = root.jQuery; | ||
if ($elm.attr('type') === 'radio') { | ||
radioName = $elm.attr('name'), | ||
radioName = $elm.attr('name'); | ||
$($elm[0].form).find('input[name="' + radioName + '"]') | ||
@@ -91,3 +91,3 @@ .parent('label') | ||
SelectionButtons.prototype.getFocusHandler = function (opts) { | ||
var focusEvent = (opts.level === 'document') ? 'focusin' : 'focus' | ||
var focusEvent = (opts.level === 'document') ? 'focusin' : 'focus'; | ||
@@ -94,0 +94,0 @@ return function (e) { |
(function () { | ||
"use strict" | ||
"use strict"; | ||
var root = this, | ||
@@ -74,4 +74,4 @@ $ = root.jQuery; | ||
} | ||
} | ||
}; | ||
root.GOVUK.stickAtTopWhenScrolling = sticky; | ||
}).call(this); |
@@ -15,3 +15,3 @@ // Stop scrolling at footer. | ||
(function () { | ||
"use strict" | ||
"use strict"; | ||
var root = this, | ||
@@ -18,0 +18,0 @@ $ = root.jQuery; |
{ | ||
"name": "govuk_frontend_toolkit", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "npm package for using the GOV.UK frontend toolkit", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -12,8 +12,10 @@ # GOV.UK frontend toolkit npm package | ||
Include `govuk_frontend_toolkit` in your `package.json` along with a version, and run: | ||
To include the toolkit in your project run: | ||
``` | ||
npm install | ||
npm install --save govuk_frontend_toolkit | ||
``` | ||
This will install the toolkit inside your node_modules and will add the package to you package.json. | ||
## Updating this package | ||
@@ -20,0 +22,0 @@ |
@@ -1,1 +0,1 @@ | ||
3.0.1 | ||
3.1.0 |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
419740
155
31
0