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

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.12+dd76d13a",
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": "dd76d13a75f00a0261df82e055d2525ba6c3189d"
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,9 @@
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);
85
+ }
86
+ .action-banner__inner {
87
+ display: unset;
79
88
  }
80
89
 
81
90
  .action-banner__container {
@@ -160,25 +169,6 @@
160
169
 
161
170
  @include media-queries.mq($from: md) {
162
171
  @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
172
 
183
173
  &--full-width,
184
174
  &--full-width-subtle {
@@ -228,8 +218,26 @@
228
218
  }
229
219
  }
230
220
  }
221
+ }
231
222
 
232
- // Removed absolute positioning from actions here
233
- // (replaced above in .action-banner__actions)
223
+ @include media-queries.mq($until: sm) {
224
+ .action-banner__actions .btn {
225
+ white-space: normal;
226
+ word-break: break-word;
227
+ inline-size: 100%;
228
+ }
229
+ .action-banner__text {
230
+ white-space: normal;
231
+ word-break: break-word;
232
+ inline-size: 100%;
233
+ margin-bottom: 0;
234
+ }
235
+ .action-banner__inner {
236
+ flex-direction: column;
237
+ align-items: flex-start;
238
+ }
239
+ .action-banner__intro {
240
+ margin-bottom: utils.rem(spacing.$medium);
241
+ }
234
242
  }
235
243
  }