@nice-digital/nds-core 2.0.4-alpha.0 → 2.0.7-alpha.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-digital/nds-core",
3
- "version": "2.0.4-alpha.0",
3
+ "version": "2.0.7-alpha.0",
4
4
  "description": "Core code for the NICE Design System",
5
5
  "author": "Ian Routledge <ian.routledge@nice.org.uk>",
6
6
  "contributors": [
@@ -44,5 +44,5 @@
44
44
  "devDependencies": {
45
45
  "@babel/cli": "^7.5.0"
46
46
  },
47
- "gitHead": "5bbe911b595b15d7d039aec0972d5aeabcd8de6f"
47
+ "gitHead": "ce7c70d97bfd11de41c9953a9730554067e18f6d"
48
48
  }
@@ -9,9 +9,9 @@ $link-visited: global.$custom-purple-1;
9
9
  $link-active: global.$nice-black;
10
10
  $link-focus: global.$custom-blue-1;
11
11
  $link-inverse: global.$white;
12
- $link-inverse-hover: global.$custom-grey-2;
12
+ $link-inverse-hover: global.$custom-blue-3-tint;
13
13
  $link-inverse-visited: global.$white;
14
- $link-inverse-active: global.$custom-grey-2;
14
+ $link-inverse-active: global.$custom-blue-3-tint;
15
15
  $link-inverse-focus: global.$white;
16
16
  $code-background: global.$custom-grey-4;
17
17
  $mark: global.$custom-yellow-highlight;
@@ -31,7 +31,7 @@ $btn-secondary: global.$custom-grey-3;
31
31
  $btn-secondary-hover: global.$black-tint-1;
32
32
  $btn-secondary-text: global.$white;
33
33
  $btn-inverse: global.$white;
34
- $btn-inverse-hover: global.$custom-grey-2;
34
+ $btn-inverse-hover: global.$custom-grey-4;
35
35
  $btn-inverse-text: global.$nice-black;
36
36
 
37
37
  // Borders
@@ -146,7 +146,7 @@ $stacked-nav-link-hover: global.$custom-grey-2;
146
146
  // Tables
147
147
  $table-heading: global.$white;
148
148
  $table-row-odd: global.$nice-cream-tint-1;
149
- $table-row-even: global.$nice-cream-3;
149
+ $table-row-even: global.$custom-grey-4;
150
150
 
151
151
  // Tabs
152
152
  $tab-btn-selected: global.$custom-grey-4;
@@ -161,3 +161,8 @@ $tag-remove: global.$nice-teal;
161
161
  $tag-remove-hover-after: global.$nice-black;
162
162
  $tag-anchor: global.$white;
163
163
  $tag-print: global.$black;
164
+ $tag-alpha: global.$custom-pink;
165
+ $tag-beta: global.$custom-orange-2;
166
+ $tag-guidance-new: global.$custom-purple-1;
167
+ $tag-guidance-updated: global.$nice-blue-tint-1;
168
+ $tag-guidance-consultation: global.$custom-green-2;
@@ -40,8 +40,11 @@ $custom-red-1: #b50f23;
40
40
  $custom-red-1-tint: #f9eced;
41
41
  $custom-orange-1: #dc8a07;
42
42
  $custom-orange-1-tint: #fbf7f1;
43
+ $custom-orange-2: #bd5826;
43
44
  $custom-green-1: #68c103;
44
45
  $custom-green-1-tint: #f3faeb;
46
+ $custom-green-2: #557021;
45
47
  $custom-yellow-shade: #d6ba32;
46
48
  $custom-yellow-highlight: #fff999;
47
49
  $custom-teal: #0092a6;
50
+ $custom-pink: #d5367f;
@@ -1,6 +1,7 @@
1
1
  @use 'sass:color';
2
2
  @use '../colours';
3
3
  @use '../focus';
4
+ @use 'settings';
4
5
 
5
6
  ////
6
7
  /// @group Typography
@@ -11,7 +12,7 @@
11
12
  @mixin link-default {
12
13
  color: colours.$link;
13
14
  -webkit-tap-highlight-color: color.adjust(colours.$focus, $alpha: -0.666);
14
- text-decoration: underline;
15
+ text-decoration-line: underline;
15
16
  text-decoration-skip-ink: auto;
16
17
 
17
18
  &:visited {
@@ -20,7 +21,7 @@
20
21
 
21
22
  &:hover {
22
23
  color: colours.$link-hover;
23
- text-decoration-thickness: 0.15rem;
24
+ text-decoration-thickness: settings.$link-hover-text-decoration-thickness;
24
25
  }
25
26
 
26
27
  &:focus {
@@ -47,7 +48,7 @@
47
48
  @mixin link-inverse {
48
49
  color: colours.$link-inverse;
49
50
  -webkit-tap-highlight-color: color.adjust(colours.$focus, $alpha: -0.666);
50
- text-decoration: underline;
51
+ text-decoration-line: underline;
51
52
  text-decoration-skip-ink: auto;
52
53
 
53
54
  &:visited {
@@ -14,6 +14,10 @@ $base-font-size: 16;
14
14
  /// @since 0.2.0
15
15
  $base-line-height: 1.6;
16
16
 
17
+ /// Default text decoration thickness for link hover
18
+ /// @since 3.0.0
19
+ $link-hover-text-decoration-thickness: 0.2rem;
20
+
17
21
  /// Sans-serif font stack
18
22
  /// @since 2.0.0
19
23
  $font-family-sans: 'Inter, Roboto, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif';