@nice-digital/nds-action-banner 4.3.1-alpha.0 → 4.3.1-alpha.11

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": "4.3.1-alpha.0",
3
+ "version": "4.3.1-alpha.11+ab7d3ed3",
4
4
  "description": "Action banner component for the NICE Design System",
5
5
  "keywords": [
6
6
  "banner"
@@ -47,5 +47,5 @@
47
47
  "@types/node": "^18.11.9",
48
48
  "typescript": "^4.8.4"
49
49
  },
50
- "gitHead": "ff15ff0f9fb447d7714ece3f0d4e3713ec0a60ed"
50
+ "gitHead": "ab7d3ed39ca869a6cff2dff7db1c689ab6c3291e"
51
51
  }
@@ -11,6 +11,7 @@
11
11
  @use '@nice-digital/nds-core/scss/typography';
12
12
  @use '@nice-digital/nds-core/scss/utils';
13
13
  @use '@nice-digital/nds-core/scss/visibility';
14
+
14
15
  /// Action banner component. Used to highlight
15
16
  /// and give context to a call-to-action.
16
17
  ///
@@ -31,9 +32,15 @@
31
32
  &__container {
32
33
  @include layout.container;
33
34
  }
34
-
35
+ &__inner {
36
+ display: flex;
37
+ flex-wrap: wrap;
38
+ align-items: center;
39
+ justify-content: space-between;
40
+ }
35
41
  &__text {
36
- margin-bottom: utils.rem(spacing.$medium);
42
+ margin-right: utils.rem(spacing.$medium);
43
+ flex: 1 1 70%;
37
44
  }
38
45
 
39
46
  &__title {
@@ -42,12 +49,12 @@
42
49
  }
43
50
 
44
51
  &__intro {
45
- margin: 0;
52
+ margin: utils.rem(0 0 spacing.$medium 0);
46
53
  }
47
54
 
48
55
  &__actions {
49
56
  @include focus.inverse-button-focus;
50
-
57
+ flex: 0 0 auto;
51
58
  .btn {
52
59
  margin: 0;
53
60
  }
@@ -75,7 +82,6 @@
75
82
  .action-banner__intro * {
76
83
  @include typography.lead();
77
84
  margin-top: utils.rem(spacing.$medium);
78
- margin-bottom: utils.rem(spacing.$large);
79
85
  }
80
86
 
81
87
  .action-banner__container {
@@ -160,25 +166,6 @@
160
166
 
161
167
  @include media-queries.mq($from: md) {
162
168
  @include layout.clearfix;
163
- &__inner {
164
- display: flex;
165
- flex-wrap: wrap;
166
- align-items: center;
167
- justify-content: space-between;
168
- }
169
-
170
- &__text {
171
- flex: 1 1 70%;
172
- margin-bottom: utils.rem(spacing.$small);
173
- }
174
-
175
- &__actions {
176
- flex: 0 1 auto;
177
- margin-top: utils.rem(spacing.$small);
178
- position: static;
179
- transform: none;
180
- text-align: right;
181
- }
182
169
 
183
170
  &--full-width,
184
171
  &--full-width-subtle {
@@ -228,8 +215,26 @@
228
215
  }
229
216
  }
230
217
  }
218
+ }
231
219
 
232
- // Removed absolute positioning from actions here
233
- // (replaced above in .action-banner__actions)
220
+ @include media-queries.mq($until: sm) {
221
+ .action-banner__actions .btn {
222
+ white-space: normal;
223
+ word-break: break-word;
224
+ inline-size: 100%;
225
+ }
226
+ .action-banner__text {
227
+ white-space: normal;
228
+ word-break: break-word;
229
+ inline-size: 100%;
230
+ margin-bottom: 0;
231
+ }
232
+ .action-banner__inner {
233
+ flex-direction: column;
234
+ align-items: flex-start;
235
+ }
236
+ .action-banner__intro {
237
+ margin-bottom: utils.rem(spacing.$medium);
238
+ }
234
239
  }
235
240
  }