idsk_frontend_toolkit 7.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/.gitmodules +3 -0
- data/.ruby-version +1 -0
- data/.travis/govuk_frontend_toolkit_gem_push.enc +0 -0
- data/.travis/govuk_frontend_toolkit_gem_push.pub +1 -0
- data/.travis.yml +23 -0
- data/CONTRIBUTING.md +13 -0
- data/Gemfile +3 -0
- data/LICENCE +20 -0
- data/README.md +61 -0
- data/Rakefile +10 -0
- data/app/assets/.gitignore +5 -0
- data/app/assets/.ruby-version +1 -0
- data/app/assets/.travis/README.md +23 -0
- data/app/assets/.travis/govuk_frontend_toolkit_push.enc +0 -0
- data/app/assets/.travis/govuk_frontend_toolkit_push.pub +1 -0
- data/app/assets/.travis.yml +18 -0
- data/app/assets/CHANGELOG.md +381 -0
- data/app/assets/CONTRIBUTING.md +23 -0
- data/app/assets/Gemfile +4 -0
- data/app/assets/Gemfile.lock +48 -0
- data/app/assets/Gruntfile.js +68 -0
- data/app/assets/LICENCE +20 -0
- data/app/assets/README.md +170 -0
- data/app/assets/VERSION.txt +1 -0
- data/app/assets/create-release.sh +38 -0
- data/app/assets/docs/analytics.md +270 -0
- data/app/assets/docs/functions.md +62 -0
- data/app/assets/docs/javascript.md +337 -0
- data/app/assets/docs/mixins.md +617 -0
- data/app/assets/images/accordion-arrow-2x.png +0 -0
- data/app/assets/images/accordion-arrow.png +0 -0
- data/app/assets/images/arrow-sprite.png +0 -0
- data/app/assets/images/crests/bis_crest_13px.png +0 -0
- data/app/assets/images/crests/bis_crest_13px_x2.png +0 -0
- data/app/assets/images/crests/bis_crest_18px.png +0 -0
- data/app/assets/images/crests/bis_crest_18px_x2.png +0 -0
- data/app/assets/images/crests/bis_crest_27px.png +0 -0
- data/app/assets/images/crests/bis_crest_27px_x2.png +0 -0
- data/app/assets/images/crests/coastguard_13px.png +0 -0
- data/app/assets/images/crests/coastguard_13px_x2.png +0 -0
- data/app/assets/images/crests/coastguard_18px.png +0 -0
- data/app/assets/images/crests/coastguard_18px_x2.png +0 -0
- data/app/assets/images/crests/coastguard_27px.png +0 -0
- data/app/assets/images/crests/coastguard_27px_x2.png +0 -0
- data/app/assets/images/crests/dit_crest_13px.png +0 -0
- data/app/assets/images/crests/dit_crest_13px_x2.png +0 -0
- data/app/assets/images/crests/dit_crest_18px.png +0 -0
- data/app/assets/images/crests/dit_crest_18px_x2.png +0 -0
- data/app/assets/images/crests/dit_crest_27px.png +0 -0
- data/app/assets/images/crests/dit_crest_27px_x2.png +0 -0
- data/app/assets/images/crests/hmrc_crest_13px.png +0 -0
- data/app/assets/images/crests/hmrc_crest_13px_x2.png +0 -0
- data/app/assets/images/crests/hmrc_crest_18px.png +0 -0
- data/app/assets/images/crests/hmrc_crest_18px_x2.png +0 -0
- data/app/assets/images/crests/hmrc_crest_27px.png +0 -0
- data/app/assets/images/crests/hmrc_crest_27px_x2.png +0 -0
- data/app/assets/images/crests/ho_crest_13px.png +0 -0
- data/app/assets/images/crests/ho_crest_13px_x2.png +0 -0
- data/app/assets/images/crests/ho_crest_18px.png +0 -0
- data/app/assets/images/crests/ho_crest_18px_x2.png +0 -0
- data/app/assets/images/crests/ho_crest_27px.png +0 -0
- data/app/assets/images/crests/ho_crest_27px_x2.png +0 -0
- data/app/assets/images/crests/mod_crest_13px.png +0 -0
- data/app/assets/images/crests/mod_crest_13px_x2.png +0 -0
- data/app/assets/images/crests/mod_crest_18px.png +0 -0
- data/app/assets/images/crests/mod_crest_18px_x2.png +0 -0
- data/app/assets/images/crests/mod_crest_27px.png +0 -0
- data/app/assets/images/crests/mod_crest_27px_x2.png +0 -0
- data/app/assets/images/crests/org_crest_13px.png +0 -0
- data/app/assets/images/crests/org_crest_13px_x2.png +0 -0
- data/app/assets/images/crests/org_crest_18px.png +0 -0
- data/app/assets/images/crests/org_crest_18px_x2.png +0 -0
- data/app/assets/images/crests/org_crest_27px.png +0 -0
- data/app/assets/images/crests/org_crest_27px_x2.png +0 -0
- data/app/assets/images/crests/portcullis_13px.png +0 -0
- data/app/assets/images/crests/portcullis_13px_x2.png +0 -0
- data/app/assets/images/crests/portcullis_18px.png +0 -0
- data/app/assets/images/crests/portcullis_18px_x2.png +0 -0
- data/app/assets/images/crests/portcullis_27px.png +0 -0
- data/app/assets/images/crests/portcullis_27px_x2.png +0 -0
- data/app/assets/images/crests/so_crest_13px.png +0 -0
- data/app/assets/images/crests/so_crest_13px_x2.png +0 -0
- data/app/assets/images/crests/so_crest_18px.png +0 -0
- data/app/assets/images/crests/so_crest_18px_x2.png +0 -0
- data/app/assets/images/crests/so_crest_27px.png +0 -0
- data/app/assets/images/crests/so_crest_27px_x2.png +0 -0
- data/app/assets/images/crests/ukaea_crest_13px.png +0 -0
- data/app/assets/images/crests/ukaea_crest_13px_x2.png +0 -0
- data/app/assets/images/crests/ukaea_crest_18px.png +0 -0
- data/app/assets/images/crests/ukaea_crest_18px_x2.png +0 -0
- data/app/assets/images/crests/ukaea_crest_27px.png +0 -0
- data/app/assets/images/crests/ukaea_crest_27px_x2.png +0 -0
- data/app/assets/images/crests/ukho_13px.png +0 -0
- data/app/assets/images/crests/ukho_13px_x2.png +0 -0
- data/app/assets/images/crests/ukho_18px.png +0 -0
- data/app/assets/images/crests/ukho_18px_x2.png +0 -0
- data/app/assets/images/crests/ukho_27px.png +0 -0
- data/app/assets/images/crests/ukho_27px_x2.png +0 -0
- data/app/assets/images/crests/wales_crest_13px.png +0 -0
- data/app/assets/images/crests/wales_crest_13px_x2.png +0 -0
- data/app/assets/images/crests/wales_crest_18px.png +0 -0
- data/app/assets/images/crests/wales_crest_18px_x2.png +0 -0
- data/app/assets/images/crests/wales_crest_27px.png +0 -0
- data/app/assets/images/crests/wales_crest_27px_x2.png +0 -0
- data/app/assets/images/icon-arrow-left.png +0 -0
- data/app/assets/images/icon-calendar-2x.png +0 -0
- data/app/assets/images/icon-calendar.png +0 -0
- data/app/assets/images/icon-file-download-2x.png +0 -0
- data/app/assets/images/icon-file-download.png +0 -0
- data/app/assets/images/icon-important-2x.png +0 -0
- data/app/assets/images/icon-important.png +0 -0
- data/app/assets/images/icon-information-2x.png +0 -0
- data/app/assets/images/icon-information.png +0 -0
- data/app/assets/images/icon-locator-2x.png +0 -0
- data/app/assets/images/icon-locator.png +0 -0
- data/app/assets/images/icon-pointer-2x.png +0 -0
- data/app/assets/images/icon-pointer-black-2x.png +0 -0
- data/app/assets/images/icon-pointer-black.png +0 -0
- data/app/assets/images/icon-pointer-indexed.png +0 -0
- data/app/assets/images/icon-pointer.png +0 -0
- data/app/assets/images/icon-search-2x.png +0 -0
- data/app/assets/images/icon-search.png +0 -0
- data/app/assets/images/icon-steps/icon-step-1-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-1.png +0 -0
- data/app/assets/images/icon-steps/icon-step-10-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-10.png +0 -0
- data/app/assets/images/icon-steps/icon-step-11-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-11.png +0 -0
- data/app/assets/images/icon-steps/icon-step-12-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-12.png +0 -0
- data/app/assets/images/icon-steps/icon-step-13-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-13.png +0 -0
- data/app/assets/images/icon-steps/icon-step-14-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-14.png +0 -0
- data/app/assets/images/icon-steps/icon-step-2-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-2.png +0 -0
- data/app/assets/images/icon-steps/icon-step-3-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-3.png +0 -0
- data/app/assets/images/icon-steps/icon-step-4-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-4.png +0 -0
- data/app/assets/images/icon-steps/icon-step-5-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-5.png +0 -0
- data/app/assets/images/icon-steps/icon-step-6-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-6.png +0 -0
- data/app/assets/images/icon-steps/icon-step-7-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-7.png +0 -0
- data/app/assets/images/icon-steps/icon-step-8-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-8.png +0 -0
- data/app/assets/images/icon-steps/icon-step-9-2x.png +0 -0
- data/app/assets/images/icon-steps/icon-step-9.png +0 -0
- data/app/assets/images/player-icon-forward.png +0 -0
- data/app/assets/images/player-icon-pause.png +0 -0
- data/app/assets/images/player-icon-play.png +0 -0
- data/app/assets/images/player-icon-rewind.png +0 -0
- data/app/assets/images/player-icon-volume.png +0 -0
- data/app/assets/images/separator-2x.png +0 -0
- data/app/assets/images/separator.png +0 -0
- data/app/assets/javascripts/govuk/analytics/analytics.js +143 -0
- data/app/assets/javascripts/govuk/analytics/download-link-tracker.js +41 -0
- data/app/assets/javascripts/govuk/analytics/error-tracking.js +51 -0
- data/app/assets/javascripts/govuk/analytics/external-link-tracker.js +56 -0
- data/app/assets/javascripts/govuk/analytics/google-analytics-universal-tracker.js +166 -0
- data/app/assets/javascripts/govuk/analytics/govuk-tracker.js +134 -0
- data/app/assets/javascripts/govuk/analytics/mailto-link-tracker.js +38 -0
- data/app/assets/javascripts/govuk/analytics/print-intent.js +39 -0
- data/app/assets/javascripts/govuk/details.polyfill.js +240 -0
- data/app/assets/javascripts/govuk/modules/auto-track-event.js +30 -0
- data/app/assets/javascripts/govuk/modules.js +61 -0
- data/app/assets/javascripts/govuk/primary-links.js +57 -0
- data/app/assets/javascripts/govuk/selection-buttons.js +116 -0
- data/app/assets/javascripts/govuk/shim-links-with-button-role.js +34 -0
- data/app/assets/javascripts/govuk/show-hide-content.js +172 -0
- data/app/assets/javascripts/govuk/stick-at-top-when-scrolling.js +128 -0
- data/app/assets/javascripts/govuk/stop-scrolling-at-footer.js +139 -0
- data/app/assets/javascripts/govuk_toolkit.js +1 -0
- data/app/assets/javascripts/stageprompt.js +69 -0
- data/app/assets/javascripts/vendor/jquery/jquery.player.min.js +25 -0
- data/app/assets/javascripts/vendor/polyfills/bind.js +40 -0
- data/app/assets/package.json +25 -0
- data/app/assets/spec/manifest.js +41 -0
- data/app/assets/spec/stylesheets/_colour_contrast_spec.scss +12 -0
- data/app/assets/spec/support/LocalTestRunner.html +21 -0
- data/app/assets/spec/support/console-runner.js +102 -0
- data/app/assets/spec/support/load.js +47 -0
- data/app/assets/spec/support/run_jasmine_test.js +62 -0
- data/app/assets/spec/unit/analytics/analytics.spec.js +315 -0
- data/app/assets/spec/unit/analytics/download-link-tracker.spec.js +72 -0
- data/app/assets/spec/unit/analytics/error-tracking.spec.js +65 -0
- data/app/assets/spec/unit/analytics/external-link-tracker.spec.js +109 -0
- data/app/assets/spec/unit/analytics/google-analytics-universal-tracker.spec.js +180 -0
- data/app/assets/spec/unit/analytics/govuk-tracker.spec.js +171 -0
- data/app/assets/spec/unit/analytics/mailto-link-tracker.spec.js +62 -0
- data/app/assets/spec/unit/details.polyfill.spec.js +91 -0
- data/app/assets/spec/unit/modules/auto-track-event.spec.js +54 -0
- data/app/assets/spec/unit/modules.spec.js +93 -0
- data/app/assets/spec/unit/primary-links.spec.js +55 -0
- data/app/assets/spec/unit/selection-button.spec.js +761 -0
- data/app/assets/spec/unit/shim-links-with-button-role.spec.js +41 -0
- data/app/assets/spec/unit/show-hide-content.spec.js +306 -0
- data/app/assets/spec/unit/stick-at-top-when-scrolling.spec.js +137 -0
- data/app/assets/stylesheets/.gitkeep +0 -0
- data/app/assets/stylesheets/_colours.scss +2 -0
- data/app/assets/stylesheets/_conditionals.scss +81 -0
- data/app/assets/stylesheets/_css3.scss +90 -0
- data/app/assets/stylesheets/_device-pixels.scss +10 -0
- data/app/assets/stylesheets/_font_stack.scss +25 -0
- data/app/assets/stylesheets/_grid_layout.scss +136 -0
- data/app/assets/stylesheets/_helpers.scss +16 -0
- data/app/assets/stylesheets/_measurements.scss +14 -0
- data/app/assets/stylesheets/_shims.scss +55 -0
- data/app/assets/stylesheets/_typography.scss +249 -0
- data/app/assets/stylesheets/_url-helpers.scss +16 -0
- data/app/assets/stylesheets/colours/_organisation.scss +104 -0
- data/app/assets/stylesheets/colours/_palette.scss +77 -0
- data/app/assets/stylesheets/design-patterns/_alpha-beta.scss +67 -0
- data/app/assets/stylesheets/design-patterns/_breadcrumbs.scss +53 -0
- data/app/assets/stylesheets/design-patterns/_buttons.scss +145 -0
- data/app/assets/stylesheets/design-patterns/_media-player.scss +264 -0
- data/app/assets/trigger.sh +24 -0
- data/idsk_frontend_toolkit.gemspec +49 -0
- data/lib/idsk_frontend_toolkit/engine.rb +4 -0
- data/lib/idsk_frontend_toolkit/version.rb +5 -0
- data/lib/idsk_frontend_toolkit.rb +4 -0
- data/publish.sh +30 -0
- metadata +314 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a172dd7b144deb4660412f2c5507e7c3505c982b
|
4
|
+
data.tar.gz: c3614ba4fa9ef899bad44f5c6b97375e10610eff
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1d93158bfac959d5a3e61112f71f284582d13bdeb2defef02fc1c00e5d90cd2d1940d96556a569bdbe07a2745ce04f70fb41d165d527b83af95ee40a319babb6
|
7
|
+
data.tar.gz: b24f0e8a8ea46ab2a3798eeaed0dae5f54bd23a32043eb5090a5c9e1469342d3834613a4941000cef32e35be328efb5e7e18d8b14792b987d61fa6212359e882
|
data/.gitignore
ADDED
data/.gitmodules
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.1
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC+j/U0WFz2gqGhaj8Xriug1UwSicikVGQev+0aBVkYy/V67eQhg+lQJbMunsqY47yPT8TkevXZIaTqRTs/39lh9z97CMBEK8+n5qATODEGxLG/hLopzvHe221EryNJRWS7J3oGnpjPJfEh+DAYOewqkHFLqFspKSI4KZK4cpT+xMEyTRtjeGFQIO+2I3T5lC3xUNeH4nNb4V3K8h1x1zhNsYKxZq0qPtBh01z6ny5Fv0M0zNGGk44o/1kN8eozdEAgQrKORtgWX7BGM+qyrztW74fUetbRF9FLyEhdDdmLQe3CRKhYVFUobGXgRzDYy6zuYWjvy/oG8et/BIU7AUHFtihlorAvLpRVuRaFxgzQ1ZxwWA9Kp7QUer1fN5BfW7iVt5HbsUrnzsDXr1dPXRWu1QiKphJbJp9j08NqXnkrVs6QyyzNgkYKYNRsYHyOAuXrp3I2lDtW2nH+fkgOn5fMp5LU6EoiR1rtx+S9uEKf8UOrfZoM51jo3ZjxJt22zZf0fUFxoeuw5JyLgKMsnLM67a7Cd+DAQmDUlyoJf+u2JtrhDF65OpmQreWMpeClfOPZc2aF1Dv4atgdAZzAl/GpzdjtihkdK0XOlCuQ7/onXl8eyJ4Dlrsz6zvG6ehN7QPvr2vgdvbNWF8RPCJcajxxW9vGMiKxC4RKJvpOlSOXrw== design-system-pipeline@digital.cabinet-office.gov.uk
|
data/.travis.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
language: ruby
|
2
|
+
sudo: false
|
3
|
+
branches:
|
4
|
+
only:
|
5
|
+
- master
|
6
|
+
before_install:
|
7
|
+
- openssl aes-256-cbc -K $encrypted_1c9807165ece_key -iv $encrypted_1c9807165ece_iv -in .travis/idsk_frontend_toolkit_gem_push.enc -out ~/.ssh/id_rsa -d
|
8
|
+
- chmod 600 ~/.ssh/id_rsa
|
9
|
+
- git config --global user.name "GOV.UK Design System CI"
|
10
|
+
- git config --global user.email "design-system-pipeline@digital.cabinet-office.gov.uk"
|
11
|
+
- git remote add origin_ssh git@github.com:id-sk/idsk_frontend_toolkit_gem.git
|
12
|
+
install:
|
13
|
+
- echo "No dependencies to install"
|
14
|
+
script:
|
15
|
+
- ./publish.sh
|
16
|
+
deploy:
|
17
|
+
provider: rubygems
|
18
|
+
api_key:
|
19
|
+
secure: G1jZasAAUiHjZji6jbASaD1C41qXjpFNz58NEvw0EjgtM49qW062Qwjo6TcG83gYLUAq19WDDS3xrqqsDj4T/s84cpQcjqrZebgbZq2HqM4KepiRFOIzqJYTq2Lrl7ZdMqFKp+EUfo2WSRZQv94K+RyQqTAnLEyZB5zpfV/H+ok=
|
20
|
+
gem: idsk_frontend_toolkit
|
21
|
+
on:
|
22
|
+
branch: master
|
23
|
+
repo: id-sk/idsk_frontend_toolkit_gem
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contribution Guidelines
|
2
|
+
|
3
|
+
We welcome patches to the toolkit, as long as you follow these
|
4
|
+
guidelines:
|
5
|
+
|
6
|
+
## Indentation and whitespace
|
7
|
+
|
8
|
+
2-space, soft-tabs only. No trailing whitespace.
|
9
|
+
|
10
|
+
## Versioning
|
11
|
+
|
12
|
+
We use [semantic versioning](http://semver.org/), and bump the version
|
13
|
+
on master only. Please don't submit your own proposed version numbers.
|
data/Gemfile
ADDED
data/LICENCE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2013 HM Government
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# ID-SK Frontend Toolkit
|
2
|
+
|
3
|
+
A gem wrapper around the [idsk_frontend_toolkit](http://github.com/id-sk/idsk_frontend_toolkit).
|
4
|
+
|
5
|
+
## Installing
|
6
|
+
|
7
|
+
Just include `idsk_frontend_toolkit` in your `Gemfile`. It
|
8
|
+
automatically attaches itself to your asset path so the static/SCSS
|
9
|
+
files will be available to the asset pipeline.
|
10
|
+
|
11
|
+
### Development
|
12
|
+
|
13
|
+
If you are installing from git, ensure you enable submodules like so:
|
14
|
+
|
15
|
+
gem 'idsk_frontend_toolkit', :git => "https://github.com/id-sk/idsk_frontend_toolkit_gem.git", :submodules => true
|
16
|
+
|
17
|
+
You will need to check that the gem is included while in development. Often
|
18
|
+
asset related gems are in a bundler group called `assets`. Old Rails projects
|
19
|
+
do not inluded this in development by default so you need to ensure bundler is
|
20
|
+
included using the following lines at the top of the `/config/application.rb`:
|
21
|
+
|
22
|
+
if defined?(Bundler)
|
23
|
+
# If you precompile assets before deploying to production, use this line
|
24
|
+
Bundler.require *Rails.groups(assets: %w(development test))
|
25
|
+
# If you want your assets lazily compiled in production, use this line
|
26
|
+
# Bundler.require(:default, :assets, Rails.env)
|
27
|
+
end
|
28
|
+
|
29
|
+
### Production
|
30
|
+
|
31
|
+
You will need to ensure that the correct assets are precompiled for
|
32
|
+
production. These are set using the variable `config.assets.precompile` in
|
33
|
+
`/config/application.rb`. An example of what this may look like is:
|
34
|
+
|
35
|
+
config.assets.precompile += %w(
|
36
|
+
application.css
|
37
|
+
application-ie8.css
|
38
|
+
application-ie7.css
|
39
|
+
application-ie6.css
|
40
|
+
application.js
|
41
|
+
)
|
42
|
+
|
43
|
+
## Usage
|
44
|
+
|
45
|
+
At the top of a Sass file in your Rails project you should use an `@import` rule
|
46
|
+
to include the file for the mixins you require. For example if you want the
|
47
|
+
conditionals and typography mixins you should add:
|
48
|
+
|
49
|
+
@import '_conditionals';
|
50
|
+
@import '_typography';
|
51
|
+
|
52
|
+
## Updating the version of the toolkit that's included with the gem
|
53
|
+
|
54
|
+
You shouldn't need to touch this repository. New versions are published automatically
|
55
|
+
based on the `VERSION.txt` in [the frontend toolkit repo][idsk_frontend_toolkit].
|
56
|
+
|
57
|
+
## Licence
|
58
|
+
|
59
|
+
Released under the MIT Licence, a copy of which can be found in the file `LICENCE`.
|
60
|
+
|
61
|
+
[idsk_frontend_toolkit]: https://github.com/id-sk/idsk_frontend_toolkit
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.1
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Travis encrypted files
|
2
|
+
|
3
|
+
This directory contains a public/private keypair generated just for this repository.
|
4
|
+
|
5
|
+
The public key is a deploy key which has been added to the GitHub repo for push access.
|
6
|
+
|
7
|
+
The private key is encrypted using `travis encrypt-file` and then committed to this repo.
|
8
|
+
|
9
|
+
The decrypt commands are in `.travis.yml`. We only decrypt these files on the master
|
10
|
+
branch because people who have forked the repo don't have access to the
|
11
|
+
`$encrypted` environment variables.
|
12
|
+
|
13
|
+
## Trigger script
|
14
|
+
|
15
|
+
In `/trigger.sh` we use `$TRAVIS_TOKEN` to trigger downstream jobs - this
|
16
|
+
is the only way we can find that Travis can trigger another job.
|
17
|
+
|
18
|
+
In this case, the downstream jobs publish the frontend toolkit to npm
|
19
|
+
and RubyGems.
|
20
|
+
|
21
|
+
The [Travis settings](https://travis-ci.org/alphagov/govuk_frontend_toolkit/settings)
|
22
|
+
contains a Travis token that belongs to
|
23
|
+
[@govuk-design-system-ci](https://github.com/govuk-design-system-ci).
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDGga8p2/rZkT25sI12Jhc7QWVkHi5FAuAaCRcKadtnlCCvILeakCrQJtVmiRSSI+U2t1HYjE+EDyE5SaGGaDwPQwCJs5K6Z+du2lTNrLestGeC2XnXPFHTNTN17ddRVnt5UCjL6w+1USYXnZ2a1mJO/M/CO5Z3uXYRXFiKWhQ5/YrfzhTs7wZPILCMR/VbOiH8WGrqM77sX/6FVkDtNjIN9PqwUAtHlEiFEpXTxlNg7E/xU1lOxIFvrNtaM9Glhgq1gekvr0OQVTk8WvxVtYpD/BmUm9nXnFkIZamE81dPcqSm3/9xheQz2HmUK18zZip6L2XIR2bj3KfA/uku1+G3ve7Llx54/99RYxZrPVszqhv23nXFqCf7/5yyXIKlXefKX+qBw1yAYkI/anL7vkDaAL89CTzNd+AXlgyC114eHAbpo+rd9Vib+n3aoZrovsBgvJwUXIW5RgqxL9QJfqycOz6OD2uetfOLpgtIaKNtca6/YiGZGO4t8eRqVzg8zVfaDjH+n+BZhKuGop5ioJ7W7iGjE+FqQZu8KoQDiDs3N0VLkXLJfkFfwTr1GvmFj3rk2NN1voUXxoHiqQFdhL2Szkko4SyrATdAAumOCixKoCJGfh2IkCJ3Oo+y/wBVMH/V6KKADejku27NlfRfo3jnA851Qfq4ArAID7ECC0/cnw== design-system-pipeline@digital.cabinet-office.gov.uk
|
@@ -0,0 +1,18 @@
|
|
1
|
+
sudo: false
|
2
|
+
language: node_js
|
3
|
+
node_js:
|
4
|
+
- "6.9.5"
|
5
|
+
before_install:
|
6
|
+
# Node project, so Ruby dependencies must be installed manually (see `govuk-lint`)
|
7
|
+
- bundle install
|
8
|
+
before_deploy:
|
9
|
+
- test $TRAVIS_TEST_RESULT = 0
|
10
|
+
deploy:
|
11
|
+
- provider: script
|
12
|
+
script: './create-release.sh'
|
13
|
+
on:
|
14
|
+
branch: master
|
15
|
+
- provider: script
|
16
|
+
script: './trigger.sh'
|
17
|
+
on:
|
18
|
+
branch: master
|
@@ -0,0 +1,381 @@
|
|
1
|
+
# 7.4.2
|
2
|
+
|
3
|
+
- Remove the deprecation warning in javascripts/govuk/selection-buttons.js as it is coupled to a different project which is not always used with this gem.
|
4
|
+
|
5
|
+
# 7.4.1
|
6
|
+
|
7
|
+
- Use a path, not a full url, as the `defaultPathForTrackPageview` because our analytics trackers expect the explicit page param to be a path, not a url ([PR #451](https://github.com/alphagov/govuk_frontend_toolkit/pull/451)). Analytics sent with 7.3.0 and 7.4.0 are broken without this fix.
|
8
|
+
|
9
|
+
# 7.4.0
|
10
|
+
|
11
|
+
- Allow wrapping arguments to analytics as PII safe to tell the analytics code not to attempt to strip PII from the values: ([PR #448](https://github.com/alphagov/govuk_frontend_toolkit/pull/448))
|
12
|
+
- Documentation improvements: ([PR #446](https://github.com/alphagov/govuk_frontend_toolkit/pull/446), [PR #447](https://github.com/alphagov/govuk_frontend_toolkit/pull/447))
|
13
|
+
|
14
|
+
# 7.3.0
|
15
|
+
|
16
|
+
- Strip PII from all arguments passed to GA. Emails are stripped by default, postcodes can also be stripped if configured to do so: ([PR #435](https://github.com/alphagov/govuk_frontend_toolkit/pull/435)).
|
17
|
+
- Update sass and govuk-lint dependencies: ([PR #444](https://github.com/alphagov/govuk_frontend_toolkit/pull/444)).
|
18
|
+
|
19
|
+
# 7.2.0
|
20
|
+
|
21
|
+
- Add custom dimension on TrackEvent to duplicate the url information that we normally send on a the `event action`. This will be used to join up with a scheduled custom upload called "External Link Status". We can only join uploads on custom dimensions, not on `event actions`, where we normally add the url info. ([PR #436](alphagov/govuk_frontend_toolkit#436) and [PR #439](alphagov/govuk_frontend_toolkit#439))
|
22
|
+
|
23
|
+
# 7.1.0
|
24
|
+
|
25
|
+
- Promote the details polyfill to Frontend Toolkit from GOV.UK Elements ([PR #426](https://github.com/alphagov/govuk_frontend_toolkit/pull/426)).
|
26
|
+
|
27
|
+
# 7.0.1
|
28
|
+
|
29
|
+
- Volume up and down buttons in the media player were overlapping the current volume percentage on focus. This fix keeps the large button touch area, but adjusts the focus state to be smaller. ([PR #429](https://github.com/alphagov/govuk_frontend_toolkit/pull/429)).
|
30
|
+
|
31
|
+
# 7.0.0
|
32
|
+
|
33
|
+
- Remove multivariate test library ([PR #420](https://github.com/alphagov/govuk_frontend_toolkit/pull/420)). If you need to continue using this library please copy the JavaScript and documentation from version 6.0.4 into your repository.
|
34
|
+
|
35
|
+
# 6.0.4
|
36
|
+
|
37
|
+
- Version bumping related to [govuk_frontend_toolkit_gem PR #15](https://github.com/alphagov/govuk_frontend_toolkit_gem/pull/15)
|
38
|
+
|
39
|
+
# 6.0.3
|
40
|
+
|
41
|
+
- Allow the passing of a [fields object](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference)
|
42
|
+
to the `trackShare` method in analytics, in line with the Google Analytics
|
43
|
+
[social interactions API](https://developers.google.com/analytics/devguides/collection/analyticsjs/social-interactions)
|
44
|
+
- Add documentation for new version releases
|
45
|
+
|
46
|
+
# 6.0.2
|
47
|
+
|
48
|
+
- Increase button focus specificity to avoid being overridden by govuk_template ([PR #409](https://github.com/alphagov/govuk_frontend_toolkit/pull/409))
|
49
|
+
|
50
|
+
# 6.0.1
|
51
|
+
|
52
|
+
- Fix a Javascript error in IE7 caused by trying to access a character within a string using array notation ([PR #407](https://github.com/alphagov/govuk_frontend_toolkit/pull/407))
|
53
|
+
|
54
|
+
# 6.0.0
|
55
|
+
|
56
|
+
- Breaking change: configure the GOV.UK Analytics tracker with `govukTrackerUrl` instead of `govukTrackerGifUrl` ([PR #405](https://github.com/alphagov/govuk_frontend_toolkit/pull/405))
|
57
|
+
- Fix the sending of the GA Client ID with calls to the GOV.UK Tracker ([PR #404](https://github.com/alphagov/govuk_frontend_toolkit/pull/404))
|
58
|
+
- Disable GA ad tracking ([PR #401](https://github.com/alphagov/govuk_frontend_toolkit/pull/401))
|
59
|
+
|
60
|
+
# 5.2.0
|
61
|
+
|
62
|
+
- 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.
|
63
|
+
|
64
|
+
# 5.1.3
|
65
|
+
|
66
|
+
- 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))
|
67
|
+
|
68
|
+
# 5.1.2
|
69
|
+
|
70
|
+
- 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))
|
71
|
+
- 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))
|
72
|
+
|
73
|
+
# 5.1.1
|
74
|
+
|
75
|
+
- Update the alpha, beta and discovery colours to $govuk-blue to match the updated phase banner ([PR #370](https://github.com/alphagov/govuk_frontend_toolkit/pull/370))
|
76
|
+
- Fix radio button show/hide behaviour when used outside a form ([PR #375](https://github.com/alphagov/govuk_frontend_toolkit/pull/375))
|
77
|
+
- Fix a "Stick at top when scrolling" component bug related to scroll anchoring in Chrome 56+ ([PR #376](https://github.com/alphagov/govuk_frontend_toolkit/pull/376))
|
78
|
+
- Minor travis fixes ([PR #373](https://github.com/alphagov/govuk_frontend_toolkit/pull/373))
|
79
|
+
|
80
|
+
# 5.1.0
|
81
|
+
|
82
|
+
- Allow custom options when tracking events ([PR #365](https://github.com/alphagov/govuk_frontend_toolkit/pull/365))
|
83
|
+
|
84
|
+
# 5.0.3
|
85
|
+
|
86
|
+
- Change HMRC and DEFRA text colours for improved contrast ([PR #368](https://github.com/alphagov/govuk_frontend_toolkit/pull/368))
|
87
|
+
|
88
|
+
# 5.0.2
|
89
|
+
|
90
|
+
- Change colour used in phase tags to govuk-blue ([PR #353](https://github.com/alphagov/govuk_frontend_toolkit/pull/353))
|
91
|
+
|
92
|
+
# 5.0.1
|
93
|
+
|
94
|
+
- Fix role="button" click shim ([PR #347](https://github.com/alphagov/govuk_frontend_toolkit/pull/347))
|
95
|
+
- Make font variables lowercase ([PR #348](https://github.com/alphagov/govuk_frontend_toolkit/pull/348))
|
96
|
+
- Update selection button documentation ([PR #350](https://github.com/alphagov/govuk_frontend_toolkit/pull/350))
|
97
|
+
|
98
|
+
# 5.0.0
|
99
|
+
|
100
|
+
This release includes two breaking changes:
|
101
|
+
- Removal of external link styles and icons, if you are using the external-link-* mixins you will need to remove them from your codebase ([PR #293](https://github.com/alphagov/govuk_frontend_toolkit/pull/293))
|
102
|
+
- Correct spelling of the 'accordion' icon, you will need to check for the incorrect spelling 'accordian' and update if you are using this icon ([PR #345](https://github.com/alphagov/govuk_frontend_toolkit/pull/345))
|
103
|
+
And two minor changes:
|
104
|
+
- Amend GOVUK.StickAtTopWhenScrolling to resize the sticky element and shim when the .js-sticky-resize class is set ([PR #343](https://github.com/alphagov/govuk_frontend_toolkit/pull/343))
|
105
|
+
- Allow custom options in GOVUK.analytics.trackPageview ([#332](https://github.com/alphagov/govuk_frontend_toolkit/pull/332))
|
106
|
+
|
107
|
+
# 4.18.4
|
108
|
+
|
109
|
+
- Lint codebase using standard ([PR #334](https://github.com/alphagov/govuk_frontend_toolkit/pull/334))
|
110
|
+
- Add semicolons at the start of IIFE's ([PR #339](https://github.com/alphagov/govuk_frontend_toolkit/pull/339))
|
111
|
+
|
112
|
+
# 4.18.3
|
113
|
+
|
114
|
+
- For smaller screens (<768px) ensure that the GOVUK.StickAtTopWhenScrolling JS "unsticks" the element which was previously "stuck" (by removing both the class which sets fixed positioning and the shim). ([PR #329](https://github.com/alphagov/govuk_frontend_toolkit/pull/329))
|
115
|
+
|
116
|
+
# 4.18.2
|
117
|
+
|
118
|
+
- Remove unnecessary print font fallback that causes regression downstream ([PR #328](https://github.com/alphagov/govuk_frontend_toolkit/pull/328))
|
119
|
+
- Update tooling to use npm script rather than grunt-shell ([PR #327](https://github.com/alphagov/govuk_frontend_toolkit/pull/327))
|
120
|
+
|
121
|
+
# 4.18.1
|
122
|
+
|
123
|
+
- Fix error in IE - remove trailing comma from shimLinksWithButtonRole JavaScript ([PR #323](https://github.com/alphagov/govuk_frontend_toolkit/pull/323)).
|
124
|
+
|
125
|
+
# 4.18.0
|
126
|
+
|
127
|
+
- Add GOVUK.ShowHideContent JavaScript to support showing and hiding content, toggled by radio buttons and checkboxes ([PR #315](https://github.com/alphagov/govuk_frontend_toolkit/pull/315)).
|
128
|
+
|
129
|
+
# 4.17.0
|
130
|
+
|
131
|
+
- SelectionButtons will add a class to the label with the type of the child input ([PR #317](https://github.com/alphagov/govuk_frontend_toolkit/pull/317))
|
132
|
+
|
133
|
+
# 4.16.1
|
134
|
+
|
135
|
+
- Fix anchor-buttons.js to trigger a native click event, also rename to shimLinksWithButtonRole.js to explain what it does
|
136
|
+
- Add tests for shimLinksWithButtonRole ([PR #310](https://github.com/alphagov/govuk_frontend_toolkit/pull/310))
|
137
|
+
|
138
|
+
# 4.16.0
|
139
|
+
|
140
|
+
- Add Department for International Trade organisation ([PR #308](https://github.com/alphagov/govuk_frontend_toolkit/pull/308))
|
141
|
+
|
142
|
+
# 4.15.0
|
143
|
+
|
144
|
+
- Add support for Google Analytics fieldsObject ([PR #298](https://github.com/alphagov/govuk_frontend_toolkit/pull/298))
|
145
|
+
- anchor-buttons.js: normalise keyboard behaviour between buttons and links with a button role ([PR #297](https://github.com/alphagov/govuk_frontend_toolkit/pull/297))
|
146
|
+
|
147
|
+
# 4.14.1
|
148
|
+
|
149
|
+
- Fix tabular number sizing in Firefox ([PR #301](https://github.com/alphagov/govuk_frontend_toolkit/pull/301))
|
150
|
+
|
151
|
+
# 4.14.0
|
152
|
+
|
153
|
+
- Allow use of multiple GA customDimensionIndex. See [this section](https://github.com/alphagov/govuk_frontend_toolkit/blob/master/docs/javascript.md#using-google-custom-dimensions-with-your-own-statistical-model) of the documentation for more information.
|
154
|
+
- Configurable duration (in days) for AB Test cookie. See [this section](https://github.com/alphagov/govuk_frontend_toolkit/blob/master/docs/javascript.md#multivariate-test-framework) of the documentation for more information.
|
155
|
+
- Allow base scripts to run within a module loader. See [this PR](https://github.com/alphagov/govuk_frontend_toolkit/pull/290) for more information.
|
156
|
+
|
157
|
+
# 4.13.0
|
158
|
+
|
159
|
+
- Make headings block-level by default (PR #200). If you are styling elements you want to be inline with heading includes, you’ll need to explicitly make them inline in your CSS.
|
160
|
+
|
161
|
+
# 4.12.0
|
162
|
+
|
163
|
+
- Increase button padding to match padding from GOV.UK elements (PR #275).
|
164
|
+
If you have UI which depends on the padding set by the button mixin in the frontend toolkit and this is not overridden by button padding set by GOV.UK elements, this change will affect it.
|
165
|
+
|
166
|
+
# 4.11.0
|
167
|
+
|
168
|
+
- Remove the GDS-Logo font-face definition (PR #272)
|
169
|
+
- Move the @viewport statements to govuk_template (PR #272). If you upgrade to this version of govuk_frontend_toolkit and you’re also using govuk_template you’ll need to upgrade that to at least 0.17.2 to maintain compatibility with desktop IE10 in snap mode.
|
170
|
+
|
171
|
+
# 4.10.0
|
172
|
+
|
173
|
+
- Allow New Transport font stack to be overridden by apps using `$toolkit-font-stack`
|
174
|
+
and `$toolkit-font-stack-tabular` (PR #230)
|
175
|
+
|
176
|
+
# 4.9.1
|
177
|
+
|
178
|
+
- Fix phase banner alignment (PR #266)
|
179
|
+
|
180
|
+
# 4.9.0
|
181
|
+
|
182
|
+
- Add websafe organisation colours
|
183
|
+
- Split colours into two files with backwards-compatible colours.scss replacement
|
184
|
+
|
185
|
+
# 4.8.2
|
186
|
+
|
187
|
+
- Add GOV.UK lint to lint scss files (PR #260)
|
188
|
+
- Remove reference to old colour palette (PR #256)
|
189
|
+
- Fix link to GOV.UK elements - tabular data
|
190
|
+
|
191
|
+
# 4.8.1
|
192
|
+
|
193
|
+
- Update DEFRA brand colour to new green (PR #249)
|
194
|
+
|
195
|
+
# 4.8.0
|
196
|
+
|
197
|
+
- Pass cohort name to analytics when using multivariate test (PR #251)
|
198
|
+
|
199
|
+
# 4.7.0
|
200
|
+
|
201
|
+
- Add 'mailto' tracking to GOV.UK Analytics (PR #244)
|
202
|
+
|
203
|
+
# 4.6.1
|
204
|
+
|
205
|
+
- Use the Sass variable $light-blue for link active and hover colours (PR #242)
|
206
|
+
|
207
|
+
# 4.6.0
|
208
|
+
|
209
|
+
- Add breadcrumb styles, separator images and documentation (PR #236)
|
210
|
+
- Add fallback image for the back link (PR #235)
|
211
|
+
|
212
|
+
# 4.5.0
|
213
|
+
|
214
|
+
- Find and auto-start JavaScript modules from markup: `data-module="module-name"`(PR #227)
|
215
|
+
|
216
|
+
# 4.4.0
|
217
|
+
|
218
|
+
- Add helpers partial for functions
|
219
|
+
- Add px to em function and documentation
|
220
|
+
|
221
|
+
# 4.3.0
|
222
|
+
|
223
|
+
- Allow javascript error tracking to be filtered to avoid noise from plugins
|
224
|
+
|
225
|
+
# 4.2.1
|
226
|
+
|
227
|
+
- Track download links using events not pageviews
|
228
|
+
|
229
|
+
# 4.2.0
|
230
|
+
|
231
|
+
- Add two analytics plugins for download and external link tracking
|
232
|
+
- Update typography mixins to be mobile first (PR #157)
|
233
|
+
|
234
|
+
# 4.1.1
|
235
|
+
|
236
|
+
- Update Accessible Media Player to remove dependency on $.browser (PR #206)
|
237
|
+
|
238
|
+
# 4.1.0
|
239
|
+
|
240
|
+
- Add support for sending the `page` option to `GOVUK.analytics.trackEvent` (PR #203)
|
241
|
+
|
242
|
+
# 4.0.1
|
243
|
+
|
244
|
+
- Fix: stop multiline text from dropping below phase tag.
|
245
|
+
|
246
|
+
# 4.0.0
|
247
|
+
|
248
|
+
- Remove Google Analytics classic https://github.com/alphagov/govuk_frontend_toolkit/pull/194
|
249
|
+
- References to google-analytics-classic-tracker.js should be removed
|
250
|
+
- Rename GOVUK.Tracker to GOVUK.Analytics
|
251
|
+
- References to GOVUK.Tracker should be updated
|
252
|
+
|
253
|
+
# 3.5.1
|
254
|
+
|
255
|
+
- Changes Analytics API library to accept one, both or neither of the
|
256
|
+
analytics tracking codes. This means we can start removing classic
|
257
|
+
tracking codes from apps.
|
258
|
+
|
259
|
+
#3.5.0
|
260
|
+
|
261
|
+
- Adds cross domain tracking to Analytics API library: https://github.com/alphagov/govuk_frontend_toolkit/pull/185
|
262
|
+
- Adds sass variables for discovery and live phases
|
263
|
+
|
264
|
+
#3.4.2
|
265
|
+
|
266
|
+
- Fix: Before this fix, when a user fell into variant 0 of a multivariate test,
|
267
|
+
the data wouldn't be reported to Google correctly because of a broken
|
268
|
+
null check in the code block that opts the user into the Google Content
|
269
|
+
Experiment.
|
270
|
+
|
271
|
+
# 3.4.1
|
272
|
+
|
273
|
+
- Fix: Make the error colour a darker red for greater contrast and to meet WCAG 2.0 AAAA
|
274
|
+
(this was meant to go into 3.3.1 but was lost from history)
|
275
|
+
- Add `$focus-colour` variable (#180)
|
276
|
+
|
277
|
+
# 3.4.0
|
278
|
+
|
279
|
+
- multivariate-test.js: add support for using Google Content Experiments as the reporting
|
280
|
+
backend for multivariate tests
|
281
|
+
|
282
|
+
# 3.3.1
|
283
|
+
|
284
|
+
- Fix: Make the error colour a darker red for greater contrast and to meet WCAG 2.0 AAAA
|
285
|
+
|
286
|
+
# 3.3.0
|
287
|
+
|
288
|
+
- Add: Analytics - pageview tracking for a print attempt
|
289
|
+
|
290
|
+
# 3.2.1
|
291
|
+
|
292
|
+
- Fix: Analytics - don't run error and print plugins on load
|
293
|
+
|
294
|
+
# 3.2.0
|
295
|
+
|
296
|
+
- Add: Analytics API https://github.com/alphagov/govuk_frontend_toolkit/pull/162 https://github.com/alphagov/govuk_frontend_toolkit/blob/master/docs/analytics.md
|
297
|
+
|
298
|
+
# 3.1.0
|
299
|
+
|
300
|
+
- Fix: outdent to add right margin rather than only left
|
301
|
+
- Fix: add missing semi-colons in JavaScript files
|
302
|
+
- Fix: use box-sizing mixin in column mixin to support more browsers
|
303
|
+
- Add: ability to specify float direction on column mixin
|
304
|
+
- Add: Sass-lint tests
|
305
|
+
|
306
|
+
# 3.0.1
|
307
|
+
|
308
|
+
- Fix a bug with the npm publishing. npm requires a version change to publish a package.
|
309
|
+
|
310
|
+
# 3.0.0
|
311
|
+
|
312
|
+
- Change publishing method to not use git submodules in govuk_frontend_toolkit_npm.
|
313
|
+
This is a major version bump because it will move the toolkit from
|
314
|
+
`./node_modules/govuk_frontend_toolkit/govuk_frontend_toolkit/`
|
315
|
+
to `./node_modules/govuk_frontend_toolkit/`, which will break relative imports in Sass.
|
316
|
+
- Fix typo in Sass comment
|
317
|
+
|
318
|
+
# 2.0.1
|
319
|
+
|
320
|
+
- Fix new grid helpers to ensure content using %site-width-container is centred in IE.
|
321
|
+
|
322
|
+
# 2.0.0
|
323
|
+
|
324
|
+
- Add support for selection-button events to be document-level https://github.com/alphagov/govuk_frontend_toolkit/pull/139
|
325
|
+
- The `GOVUK.selectionButtons` interface is now deprecated. Details are in the [README](https://github.com/alphagov/govuk_frontend_toolkit#deprecated-functionality).
|
326
|
+
|
327
|
+
# 1.7.0
|
328
|
+
|
329
|
+
- Create new grid helpers for creating grid layouts
|
330
|
+
- The old grid mixins; `@outer-block` and `@inner-block` are now deprecated
|
331
|
+
|
332
|
+
# 1.6.2
|
333
|
+
|
334
|
+
- Reset font family for print stylesheets to fix print errors in browsers and printers
|
335
|
+
|
336
|
+
# 1.6.1
|
337
|
+
|
338
|
+
- Fix visited link colour to be a colour which passes contrast
|
339
|
+
|
340
|
+
# 1.6.0
|
341
|
+
|
342
|
+
- abstraction of the core typography mixins into single core mixin
|
343
|
+
- reference to composer module added to README
|
344
|
+
- selection buttons added to manifest for localSpecRunner
|
345
|
+
- test for sass compilation
|
346
|
+
- fix for selection buttons
|
347
|
+
|
348
|
+
# 1.5.0
|
349
|
+
|
350
|
+
- polyfill for Function.prototype.bind added
|
351
|
+
- selection-buttons script added
|
352
|
+
- local runner added for Jasmine tests
|
353
|
+
|
354
|
+
# 1.4.0
|
355
|
+
|
356
|
+
- New phase banner styles
|
357
|
+
- Removed trailing commas
|
358
|
+
- Redrawn important icon
|
359
|
+
|
360
|
+
# 1.3.0
|
361
|
+
|
362
|
+
- Adds weighting to multivariant testing
|
363
|
+
|
364
|
+
# 1.2.0
|
365
|
+
|
366
|
+
- add three quarters variable to measurements
|
367
|
+
- improvements to CSS3 mixins
|
368
|
+
- set inner block mixin to use either padding or margin
|
369
|
+
- increase button padding to match alphagov/static defaults
|
370
|
+
|
371
|
+
# 1.1.0
|
372
|
+
|
373
|
+
Add icons from alphagov/static
|
374
|
+
|
375
|
+
# 1.0.1
|
376
|
+
|
377
|
+
Fix contrast on phase banner
|
378
|
+
|
379
|
+
# 1.0.0
|
380
|
+
|
381
|
+
Considered stable
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Contribution Guidelines
|
2
|
+
|
3
|
+
We welcome patches to the toolkit, as long as you follow these
|
4
|
+
guidelines:
|
5
|
+
|
6
|
+
## Indentation and whitespace
|
7
|
+
|
8
|
+
2-space, soft-tabs only. No trailing whitespace.
|
9
|
+
|
10
|
+
## Versioning
|
11
|
+
|
12
|
+
We use [Semantic Versioning](http://semver.org/).
|
13
|
+
|
14
|
+
## Releasing a new version
|
15
|
+
|
16
|
+
1. Create a branch that proposes a new [version number](https://github.com/alphagov/govuk_frontend_toolkit/blob/master/VERSION.txt) and update the [`CHANGELOG`](https://github.com/alphagov/govuk_frontend_toolkit/blob/master/CHANGELOG.md). To see the commits to be summarised in the changelog since the last release, [compare the latest-release branch with master](https://github.com/alphagov/govuk_frontend_toolkit/compare/latest-release...master).
|
17
|
+
2. Open a Pull Request - here is a [good example](https://github.com/alphagov/govuk_frontend_toolkit/pull/396).
|
18
|
+
3. Once merged into master a new version will be built and [downstream jobs triggered by Travis CI](https://github.com/alphagov/govuk_frontend_toolkit/blob/master/.travis.yml) for [govuk_frontend_toolkit_gem](https://github.com/alphagov/govuk_frontend_toolkit_gem) and [govuk_frontend_toolkit_npm](https://github.com/alphagov/govuk_frontend_toolkit_npm).
|
19
|
+
|
20
|
+
## Commit hygiene
|
21
|
+
|
22
|
+
Please see our [git style guide](https://github.com/alphagov/styleguides/blob/master/git.md)
|
23
|
+
which describes how we prefer git history and commit messages to read.
|
data/app/assets/Gemfile
ADDED