govuk_frontend_toolkit
Advanced tools
Comparing version 5.1.1 to 5.1.2
@@ -0,1 +1,6 @@ | ||
# 5.1.2 | ||
- Update show-hide-content.js to work with new `.multiple-choice` custom radio buttons and checkboxes, released in GOV.UK elements 3.0.0 ([PR #390](https://github.com/alphagov/govuk_frontend_toolkit/pull/390)) | ||
- Fix buttons not having an outer edge when colours are changed via browser settings - add an outline so they look like buttons. ([PR #377](https://github.com/alphagov/govuk_frontend_toolkit/pull/377)) | ||
# 5.1.1 | ||
@@ -2,0 +7,0 @@ |
@@ -13,4 +13,4 @@ ;(function (global) { | ||
namespace: 'ShowHideContent', | ||
radio: '.block-label[data-target] input[type="radio"]', | ||
checkbox: '.block-label[data-target] input[type="checkbox"]' | ||
radio: '[data-target] > input[type="radio"]', | ||
checkbox: '[data-target] > input[type="checkbox"]' | ||
} | ||
@@ -43,3 +43,3 @@ | ||
if (!id) { | ||
id = $control.closest('label').data('target') | ||
id = $control.closest('[data-target]').data('target') | ||
} | ||
@@ -46,0 +46,0 @@ |
{ | ||
"name": "govuk_frontend_toolkit", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"description": "npm package for using the GOV.UK frontend toolkit", | ||
@@ -5,0 +5,0 @@ "repository": { |
474847