@nice-digital/nds-action-banner 4.3.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.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": "e71ab807e1936afd74a5d8442f3f5d527f883819"
50
+ "gitHead": "ab7d3ed39ca869a6cff2dff7db1c689ab6c3291e"
51
51
  }
@@ -32,9 +32,15 @@
32
32
  &__container {
33
33
  @include layout.container;
34
34
  }
35
-
35
+ &__inner {
36
+ display: flex;
37
+ flex-wrap: wrap;
38
+ align-items: center;
39
+ justify-content: space-between;
40
+ }
36
41
  &__text {
37
- margin-bottom: utils.rem(spacing.$medium);
42
+ margin-right: utils.rem(spacing.$medium);
43
+ flex: 1 1 70%;
38
44
  }
39
45
 
40
46
  &__title {
@@ -43,12 +49,12 @@
43
49
  }
44
50
 
45
51
  &__intro {
46
- margin: 0;
52
+ margin: utils.rem(0 0 spacing.$medium 0);
47
53
  }
48
54
 
49
55
  &__actions {
50
56
  @include focus.inverse-button-focus;
51
-
57
+ flex: 0 0 auto;
52
58
  .btn {
53
59
  margin: 0;
54
60
  }
@@ -76,7 +82,6 @@
76
82
  .action-banner__intro * {
77
83
  @include typography.lead();
78
84
  margin-top: utils.rem(spacing.$medium);
79
- margin-bottom: utils.rem(spacing.$large);
80
85
  }
81
86
 
82
87
  .action-banner__container {
@@ -210,19 +215,26 @@
210
215
  }
211
216
  }
212
217
  }
218
+ }
213
219
 
214
- &__text {
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%;
215
230
  margin-bottom: 0;
216
- width: math.percentage(3 * 0.25);
217
231
  }
218
-
219
- &__actions {
220
- position: absolute;
221
- right: utils.rem(spacing.$medium);
222
- text-align: right;
223
- top: 50%;
224
- transform: translateY(-50%);
225
- width: math.percentage(1 * 0.25);
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);
226
238
  }
227
239
  }
228
240
  }