Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

govuk-elements-sass

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

govuk-elements-sass - npm Package Compare versions

Comparing version 2.2.1 to 3.0.0

public/sass/elements/forms/_form-multiple-choice.scss

18

CHANGELOG.md

@@ -0,1 +1,19 @@

# 3.0.0
- Breaking changes to form validation ([#PR 405](https://github.com/alphagov/govuk_elements/pull/405))
This adds two new classes: `.form-group-error` and `.form-control-error`, and removes the old `.error` class. This lets specific controls within a group be accurately marked as having errors. For example, this allows parts of a date entry to be marked rather than the whole section.
To upgrade, you’ll need to change any occurences of `.error` that were applied to form groups to be `.form-group-error`, and then add `.form-control-error` to the failing input inside.
- Radio buttons and checkboxes have new markup that doesn’t need JavaScript ([PR #406](https://github.com/alphagov/govuk_elements/pull/406))
Previously the radio buttons and checkboxes relied on selection-buttons.js (from [govuk_frontend_toolkit](https://github.com/alphagov/govuk_frontend_toolkit)) to work. By reworking the markup (see [examples](govuk-elements.herokuapp.com/form-elements/#form-radio-buttons)) we’ve been able remove this requirement.
To upgrade, you’ll need to change your markup to match the new pattern. Once that has been done you’ll be able to stop including selection-buttons.js and remove [the `GOVUK.SelectionButtons` constructor](https://github.com/alphagov/govuk_frontend_toolkit/blob/master/docs/javascript.md#selection-buttons) from your JavaScript. The look and feel remains the same barring some tweaks to the focus weight. Accessibility and device compatibility remains the same as the previous version.
- Add examples of phase tags used outside of phase banners ([PR #366](https://github.com/alphagov/govuk_elements/pull/366))
- Fix invisible input content when changing colours ([PR #397](https://github.com/alphagov/govuk_elements/pull/397))
- Recommend the use of `aria-current="page"` for the last breadcrumb ([PR #418](https://github.com/alphagov/govuk_elements/pull/418))
# 2.2.1

@@ -2,0 +20,0 @@

8

package.json
{
"name": "govuk-elements-sass",
"version": "2.2.1",
"version": "3.0.0",
"description": "GOVUK elements Sass files",

@@ -8,6 +8,6 @@ "repository": "alphagov/govuk_elements",

"engines": {
"node": ">=4.4.7"
"node": ">=6.0"
},
"dependencies": {
"govuk_frontend_toolkit": "^5.0.2"
"govuk_frontend_toolkit": "^5.1.1"
},

@@ -20,3 +20,3 @@ "devDependencies": {

"express-writer": "0.0.4",
"govuk_template_jinja": "0.19.1",
"govuk_template_jinja": "0.19.2",
"grunt": "^0.4.2",

@@ -23,0 +23,0 @@ "grunt-cli": "0.1.13",

@@ -67,3 +67,3 @@ GOV.UK elements

You can pick and chosoe partials from the govuk-elements-sass package.
You can pick and choose partials from the govuk-elements-sass package.

@@ -98,3 +98,3 @@ **The GOV.UK frontend toolkit scss dependencies listed below must be imported first**.

If you're not using the [GOV.UK template](https://github.com/alphagov/govuk_template),
you'll also need to uncomment the base partial in `_govuk_elements.scss`, or create your own.
you’ll also need to uncomment the base partial in `_govuk_elements.scss`, or create your own.

@@ -101,0 +101,0 @@ // @import "elements/base"; // HTML elements, set by the GOV.UK template

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc