@nice-digital/nds-action-banner 1.2.21-alpha.0 → 2.0.0-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-action-banner",
3
- "version": "1.2.21-alpha.0",
3
+ "version": "2.0.0-alpha.0",
4
4
  "description": "Action banner component for the NICE Design System",
5
5
  "keywords": [
6
6
  "banner"
@@ -34,8 +34,8 @@
34
34
  "url": "https://github.com/nice-digital/nice-design-system/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@nice-digital/icons": "^3.0.2-alpha.0",
38
- "@nice-digital/nds-core": "^1.3.5-alpha.0",
37
+ "@nice-digital/icons": "^4.0.0-alpha.0",
38
+ "@nice-digital/nds-core": "^2.0.0-alpha.0",
39
39
  "classnames": "^2.3.1",
40
40
  "prop-types": "^15.7.2"
41
41
  },
@@ -46,5 +46,5 @@
46
46
  "devDependencies": {
47
47
  "@babel/cli": "^7.5.0"
48
48
  },
49
- "gitHead": "0ddae81edebd757a52ca6a2838610049a83acebd"
49
+ "gitHead": "66fbcb1c0c01b0afc6b51b0f3fe4719be92996b0"
50
50
  }
@@ -2,6 +2,7 @@
2
2
  /// @group components
3
3
  ////
4
4
 
5
+ @use 'sass:math';
5
6
  @use '@nice-digital/nds-core/scss/colours';
6
7
  @use '@nice-digital/nds-core/scss/focus';
7
8
  @use '@nice-digital/nds-core/scss/layout';
@@ -11,22 +12,6 @@
11
12
  @use '@nice-digital/nds-core/scss/utils';
12
13
  @use '@nice-digital/nds-core/scss/visibility';
13
14
 
14
- // Default action banner background colour
15
- /// @since 1.0.0
16
- $action-banner-default-background: colours.$nice-cool-teal;
17
-
18
- // Subtle default banner border colour
19
- /// @since 1.0.0
20
- $action-banner-default-border: colours.$nice-black;
21
-
22
- // Subtle action banner background colour
23
- /// @since 1.0.0
24
- $action-banner-subtle-background: colours.$nice-grey-3;
25
-
26
- // Subtle action banner border colour
27
- /// @since 1.0.0
28
- $action-banner-subtle-border: colours.$nice-grey-2;
29
-
30
15
  /// Action banner component. Used to highlight
31
16
  /// and give context to a call-to-action.
32
17
  /// Modifiers:
@@ -36,8 +21,8 @@ $action-banner-subtle-border: colours.$nice-grey-2;
36
21
  .action-banner {
37
22
  @include visibility.hide-print;
38
23
  @include typography.links-inverse;
39
- background: $action-banner-default-background;
40
- border: 1px solid $action-banner-default-border;
24
+ background: colours.$action-banner-default-background;
25
+ border: 1px solid colours.$action-banner-default-border;
41
26
  color: colours.$text-inverse;
42
27
  margin: utils.em(0 0 spacing.$large);
43
28
  padding: utils.em(spacing.$medium 0);
@@ -83,7 +68,7 @@ $action-banner-subtle-border: colours.$nice-grey-2;
83
68
  z-index: 1;
84
69
 
85
70
  &:hover {
86
- background: rgba(0, 0, 0, 0.2);
71
+ background: rgb(0 0 0 / 20%);
87
72
  }
88
73
 
89
74
  &:focus {
@@ -93,8 +78,8 @@ $action-banner-subtle-border: colours.$nice-grey-2;
93
78
 
94
79
  &--subtle {
95
80
  @include typography.links-default;
96
- background: $action-banner-subtle-background;
97
- border: 1px solid $action-banner-subtle-border;
81
+ background: colours.$action-banner-subtle-background;
82
+ border: 1px solid colours.$action-banner-subtle-border;
98
83
  color: colours.$text;
99
84
 
100
85
  .action-banner__title {
@@ -121,7 +106,7 @@ $action-banner-subtle-border: colours.$nice-grey-2;
121
106
 
122
107
  &__text {
123
108
  margin-bottom: 0;
124
- width: percentage(3 * 0.25);
109
+ width: math.percentage(3 * 0.25);
125
110
  }
126
111
 
127
112
  &__actions {
@@ -130,7 +115,7 @@ $action-banner-subtle-border: colours.$nice-grey-2;
130
115
  text-align: right;
131
116
  top: 50%;
132
117
  transform: translateY(-50%);
133
- width: percentage(1 * 0.25);
118
+ width: math.percentage(1 * 0.25);
134
119
  }
135
120
 
136
121
  &--closeable {