govuk_frontend_toolkit 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9323b826f363ecc6b9568dcc5db77a364425fac2
4
- data.tar.gz: db6f03750e7435ee005300a65deabb26bc5cd136
3
+ metadata.gz: d64456f876457107c395006bc29a8fe4c4dfe92d
4
+ data.tar.gz: f3d01752ab0e94c616e59acaedb9753c0fa16dfb
5
5
  SHA512:
6
- metadata.gz: 4eef6173b14e493c9f8e2c82346663c793769b005574db6bd8778c5e7366a0bae880a0b65b23c9723009ea46ada2d60343b52edd24291e82f6f8b0c6cd082e02
7
- data.tar.gz: 9fab80347956b8e584c7d4bf46da2de0a72ca36362c90d1de4fb72ee32762844f73a9e04c759c7b29051843a76538276262ed48f8c84b962bcd3cbe1efe49dd0
6
+ metadata.gz: a1ca145a288dc607c8069b216d0e150de3b67e0af63da0d41ebeba50f50bcdd1ddbe35544e93312f5d53071857881df67a356214a3fcc03f59a926d2d46c3bf2
7
+ data.tar.gz: 010aa6e8cbe432307abc12d89087ceba77793dd2c15c460f9573c0875cb4f9e838f208ac860041bd83bd42462de3fc5bc40b83ff7e091ea42f9f130f24037504
@@ -1,3 +1,7 @@
1
+ # 5.0.2
2
+
3
+ - Change colour used in phase tags to govuk-blue ([PR #353](https://github.com/alphagov/govuk_frontend_toolkit/pull/353))
4
+
1
5
  # 5.0.1
2
6
 
3
7
  - Fix role="button" click shim ([PR #347](https://github.com/alphagov/govuk_frontend_toolkit/pull/347))
@@ -1 +1 @@
1
- 5.0.1
1
+ 5.0.2
@@ -534,16 +534,12 @@ A mixin to create a GOV.UK Phase banner, with alpha/beta tag inside.
534
534
 
535
535
  #### Description
536
536
 
537
- `@mixin phase-banner($state)`
538
-
539
- `$state` is either `alpha` or `beta`.
540
-
541
- `$state` sets the background colour of the phase tag to the appropriate alpha or beta colour.
537
+ `@mixin phase-banner()`
542
538
 
543
539
  ##### Phase banner - Alpha
544
540
 
545
541
  .phase-banner {
546
- @include phase-banner(alpha);
542
+ @include phase-banner();
547
543
  }
548
544
 
549
545
  <div class="phase-banner">
@@ -556,7 +552,7 @@ A mixin to create a GOV.UK Phase banner, with alpha/beta tag inside.
556
552
  ##### Phase banner - Beta
557
553
 
558
554
  .phase-banner {
559
- @include phase-banner(beta);
555
+ @include phase-banner();
560
556
  }
561
557
 
562
558
  <div class="phase-banner">
@@ -572,16 +568,12 @@ A mixin to create an alpha/beta tag.
572
568
 
573
569
  #### Description
574
570
 
575
- `@mixin phase-tag($state)`
576
-
577
- `$state` is either `alpha` or `beta`.
578
-
579
- `$state` sets the background colour of the phase tag to the appropriate alpha or beta colour.
571
+ `@mixin phase-tag()`
580
572
 
581
573
  ##### Phase tag - Alpha
582
574
 
583
575
  .alpha-tag{
584
- @include phase-tag(alpha);
576
+ @include phase-tag();
585
577
  }
586
578
  <h2>
587
579
  Apply using the new service <span class="alpha-tag">ALPHA</span>
@@ -590,7 +582,7 @@ A mixin to create an alpha/beta tag.
590
582
  ##### Phase tag - Beta
591
583
 
592
584
  .beta-tag{
593
- @include phase-tag(beta);
585
+ @include phase-tag();
594
586
  }
595
587
  <h2>
596
588
  Apply using the new service <span class="beta-tag">BETA</span>
@@ -6,10 +6,15 @@
6
6
  // Phase banner usage:
7
7
  //
8
8
  // .phase-banner {
9
- // @include phase-banner($state: beta);
9
+ // @include phase-banner();
10
10
  // }
11
11
 
12
- @mixin phase-banner($state: alpha) {
12
+ @mixin phase-banner($state: '') {
13
+
14
+ @if $state != '' {
15
+ @warn 'Passing a phase to the alpha/beta banners is deprecated';
16
+ }
17
+
13
18
  padding: 10px 0 8px;
14
19
 
15
20
  @include media(tablet) {
@@ -26,7 +31,7 @@
26
31
  }
27
32
 
28
33
  .phase-tag {
29
- @include phase-tag($state);
34
+ @include phase-tag();
30
35
  }
31
36
 
32
37
  span {
@@ -37,17 +42,17 @@
37
42
 
38
43
  // Phase tag usage:
39
44
  //
40
- // Alpha
45
+ // Alpha or beta
41
46
  // .phase-tag {
42
47
  // @include phase-tag;
43
48
  // }
44
- //
45
- // Beta
46
- // .phase-tag {
47
- // @include phase-tag(beta);
48
- // }
49
49
 
50
- @mixin phase-tag($state: alpha) {
50
+ @mixin phase-tag($state: '') {
51
+
52
+ @if $state != '' {
53
+ @warn 'Passing a phase to the phase-tag mixin is deprecated';
54
+ }
55
+
51
56
  @include inline-block;
52
57
  margin: 0 8px 0 0;
53
58
  padding: 2px 5px 0;
@@ -58,9 +63,5 @@
58
63
  text-decoration: none;
59
64
 
60
65
  color: $white;
61
- @if $state == alpha {
62
- background-color: $alpha-colour;
63
- } @else if $state == beta {
64
- background-color: $beta-colour;
65
- }
66
+ background-color: $govuk-blue;
66
67
  }
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.0.1
4
+ version: 5.0.2
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: 2016-11-22 00:00:00.000000000 Z
11
+ date: 2016-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails