@phillips/seldon 1.277.0 → 1.278.1
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/dist/_virtual/index10.cjs +1 -1
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index9.cjs +1 -1
- package/dist/_virtual/index9.js +2 -2
- package/dist/components/SlideToActivate/SlideToActivate.cjs +1 -0
- package/dist/components/SlideToActivate/SlideToActivate.d.ts +14 -0
- package/dist/components/SlideToActivate/SlideToActivate.js +147 -0
- package/dist/components/SlideToActivate/SlideToActivate.stories.argTypes.d.ts +276 -0
- package/dist/components/SlideToActivate/SlideToActivate.stories.d.ts +499 -0
- package/dist/components/SlideToActivate/SlideToActivate.stories.demo.d.ts +8 -0
- package/dist/components/SlideToActivate/SlideToActivate.test.d.ts +1 -0
- package/dist/components/SlideToActivate/SlideToActivateThumb.cjs +1 -0
- package/dist/components/SlideToActivate/SlideToActivateThumb.d.ts +28 -0
- package/dist/components/SlideToActivate/SlideToActivateThumb.js +76 -0
- package/dist/components/SlideToActivate/hooks/useSlideDragHandlers.cjs +1 -0
- package/dist/components/SlideToActivate/hooks/useSlideDragHandlers.d.ts +20 -0
- package/dist/components/SlideToActivate/hooks/useSlideDragHandlers.js +90 -0
- package/dist/components/SlideToActivate/hooks/useSlideKeyboardActivate.cjs +1 -0
- package/dist/components/SlideToActivate/hooks/useSlideKeyboardActivate.d.ts +14 -0
- package/dist/components/SlideToActivate/hooks/useSlideKeyboardActivate.js +44 -0
- package/dist/components/SlideToActivate/hooks/useSlideToActivate.cjs +1 -0
- package/dist/components/SlideToActivate/hooks/useSlideToActivate.d.ts +33 -0
- package/dist/components/SlideToActivate/hooks/useSlideToActivate.js +122 -0
- package/dist/components/SlideToActivate/index.d.ts +4 -0
- package/dist/components/SlideToActivate/slideToActivateReducer.cjs +1 -0
- package/dist/components/SlideToActivate/slideToActivateReducer.d.ts +37 -0
- package/dist/components/SlideToActivate/slideToActivateReducer.js +38 -0
- package/dist/components/SlideToActivate/slideToActivateUtils.cjs +1 -0
- package/dist/components/SlideToActivate/slideToActivateUtils.d.ts +19 -0
- package/dist/components/SlideToActivate/slideToActivateUtils.js +23 -0
- package/dist/components/SlideToActivate/slideToActivateUtils.test.d.ts +1 -0
- package/dist/components/SlideToActivate/types.cjs +1 -0
- package/dist/components/SlideToActivate/types.d.ts +105 -0
- package/dist/components/SlideToActivate/types.js +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +104 -98
- package/dist/node_modules/ics/dist/index.cjs +1 -1
- package/dist/node_modules/ics/dist/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.cjs +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/patterns/Subscribe/Subscribe.d.ts +1 -1
- package/dist/scss/componentStyles.scss +1 -0
- package/dist/scss/components/SlideToActivate/_slideToActivate.scss +284 -0
- package/dist/scss/components/SlideToActivate/_slideToActivate.stories.scss +166 -0
- package/dist/scss/components/Toast/_toast.scss +5 -6
- package/package.json +1 -1
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
@use '../../allPartials' as *;
|
|
2
|
+
|
|
3
|
+
.#{$px}-slide-to-activate {
|
|
4
|
+
// Figma Saleroom Bid Status (8482:81744): 44 track / 40 thumb / 2px inset.
|
|
5
|
+
--seldon-slide-thumb-size: 40px;
|
|
6
|
+
--seldon-slide-hit-tolerance: 8px;
|
|
7
|
+
--seldon-slide-track-height: 44px;
|
|
8
|
+
--seldon-slide-gutter-inset: 2px;
|
|
9
|
+
|
|
10
|
+
display: block;
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
touch-action: none;
|
|
13
|
+
width: 100%;
|
|
14
|
+
|
|
15
|
+
&--small {
|
|
16
|
+
--seldon-slide-thumb-size: 28px;
|
|
17
|
+
--seldon-slide-track-height: 32px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&--radius-sharp {
|
|
21
|
+
.#{$px}-slide-to-activate__track,
|
|
22
|
+
.#{$px}-slide-to-activate__thumb-face {
|
|
23
|
+
border-radius: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.#{$px}-slide-to-activate__thumb:focus-visible {
|
|
27
|
+
@include focus-ring($border-radius: 0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&--radius-rounded {
|
|
32
|
+
.#{$px}-slide-to-activate__track,
|
|
33
|
+
.#{$px}-slide-to-activate__thumb-face {
|
|
34
|
+
border-radius: $radius-md;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.#{$px}-slide-to-activate__thumb:focus-visible {
|
|
38
|
+
@include focus-ring($border-radius: $radius-md);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&--radius-pill {
|
|
43
|
+
.#{$px}-slide-to-activate__track,
|
|
44
|
+
.#{$px}-slide-to-activate__thumb-face {
|
|
45
|
+
border-radius: $radius-3xl;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.#{$px}-slide-to-activate__thumb:focus-visible {
|
|
49
|
+
@include focus-ring($border-radius: $radius-3xl);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__track {
|
|
54
|
+
align-items: center;
|
|
55
|
+
background-color: $pure-black;
|
|
56
|
+
border-radius: 0;
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
display: flex;
|
|
59
|
+
height: var(--seldon-slide-track-height);
|
|
60
|
+
justify-content: center;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
position: relative;
|
|
63
|
+
touch-action: none;
|
|
64
|
+
transition:
|
|
65
|
+
background-color 0.32s ease-out,
|
|
66
|
+
border-color 0.32s ease-out;
|
|
67
|
+
user-select: none;
|
|
68
|
+
width: 100%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__label {
|
|
72
|
+
color: $pure-white;
|
|
73
|
+
font-variation-settings: 'wght' 600;
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
position: relative;
|
|
76
|
+
transition:
|
|
77
|
+
color 0.32s ease-out,
|
|
78
|
+
opacity 0.28s ease-out;
|
|
79
|
+
z-index: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&__pending-indicator {
|
|
83
|
+
align-items: center;
|
|
84
|
+
display: flex;
|
|
85
|
+
inset: 0;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
pointer-events: none;
|
|
88
|
+
position: absolute;
|
|
89
|
+
transition: opacity 0.28s ease-out;
|
|
90
|
+
z-index: 2;
|
|
91
|
+
|
|
92
|
+
.#{$px}-loader {
|
|
93
|
+
border-color: $pure-white;
|
|
94
|
+
border-bottom-color: transparent;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&__thumb {
|
|
99
|
+
align-items: center;
|
|
100
|
+
background: transparent;
|
|
101
|
+
border: 0;
|
|
102
|
+
cursor: grab;
|
|
103
|
+
display: flex;
|
|
104
|
+
height: var(--seldon-slide-thumb-size);
|
|
105
|
+
justify-content: center;
|
|
106
|
+
left: var(--seldon-slide-gutter-inset);
|
|
107
|
+
padding: 0;
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: 50%;
|
|
110
|
+
touch-action: none;
|
|
111
|
+
transform: translateY(-50%);
|
|
112
|
+
width: var(--seldon-slide-thumb-size);
|
|
113
|
+
z-index: 3;
|
|
114
|
+
|
|
115
|
+
&::before {
|
|
116
|
+
content: '';
|
|
117
|
+
inset: calc(var(--seldon-slide-hit-tolerance) * -1);
|
|
118
|
+
position: absolute;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:active,
|
|
122
|
+
&--held {
|
|
123
|
+
cursor: grabbing;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&:focus-visible {
|
|
127
|
+
@include focus-ring($border-radius: 0);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&--held .#{$px}-slide-to-activate__thumb-face {
|
|
131
|
+
box-shadow: 0 0 0 1px rgba($pure-black, 1);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&__thumb-face {
|
|
136
|
+
align-items: center;
|
|
137
|
+
background-color: $pure-white;
|
|
138
|
+
border: 0;
|
|
139
|
+
border-radius: 0;
|
|
140
|
+
box-sizing: border-box;
|
|
141
|
+
color: $pure-black;
|
|
142
|
+
display: flex;
|
|
143
|
+
height: 100%;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
pointer-events: none;
|
|
146
|
+
transition:
|
|
147
|
+
box-shadow 0.28s ease-out,
|
|
148
|
+
background-color 0.32s ease-out,
|
|
149
|
+
color 0.32s ease-out;
|
|
150
|
+
width: 100%;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// Figma Chevron Group (8893:13050): two 22px ChevronRight icons, second at x=12.
|
|
154
|
+
&__thumb-chevrons {
|
|
155
|
+
align-items: center;
|
|
156
|
+
display: flex;
|
|
157
|
+
height: 22px;
|
|
158
|
+
width: 33px;
|
|
159
|
+
|
|
160
|
+
> *:last-child {
|
|
161
|
+
margin-left: -11px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.#{$px}-icon {
|
|
165
|
+
flex-shrink: 0;
|
|
166
|
+
height: 22px;
|
|
167
|
+
width: 22px;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&__thumb-icon {
|
|
172
|
+
align-items: center;
|
|
173
|
+
display: flex;
|
|
174
|
+
justify-content: center;
|
|
175
|
+
transition: transform 0.15s ease-out;
|
|
176
|
+
|
|
177
|
+
svg {
|
|
178
|
+
height: 22px;
|
|
179
|
+
width: 22px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&--held {
|
|
183
|
+
transform: scale(1.1);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&--small &__thumb-chevrons {
|
|
188
|
+
height: 16px;
|
|
189
|
+
width: 24px;
|
|
190
|
+
|
|
191
|
+
> *:last-child {
|
|
192
|
+
margin-left: -8px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.#{$px}-icon {
|
|
196
|
+
height: 16px;
|
|
197
|
+
width: 16px;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&--small &__thumb-icon svg {
|
|
202
|
+
height: 16px;
|
|
203
|
+
width: 16px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&--rtl &__thumb {
|
|
207
|
+
left: auto;
|
|
208
|
+
right: var(--seldon-slide-gutter-inset);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&--rtl &__thumb-icon {
|
|
212
|
+
transform: scaleX(-1);
|
|
213
|
+
|
|
214
|
+
&--held {
|
|
215
|
+
transform: scaleX(-1) scale(1.1);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&--pending {
|
|
220
|
+
.#{$px}-slide-to-activate__label {
|
|
221
|
+
opacity: 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.#{$px}-slide-to-activate__thumb {
|
|
225
|
+
cursor: default;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&--disabled {
|
|
230
|
+
pointer-events: none;
|
|
231
|
+
|
|
232
|
+
.#{$px}-slide-to-activate__thumb {
|
|
233
|
+
cursor: not-allowed;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// Not allowed / unavailable
|
|
238
|
+
&--disabled-blocked {
|
|
239
|
+
.#{$px}-slide-to-activate__track {
|
|
240
|
+
background-color: $grey-50;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.#{$px}-slide-to-activate__label {
|
|
244
|
+
// $grey-75 fails 4.5:1 against this $grey-50 background (3.98:1) — $grey-100 passes at 6.24:1.
|
|
245
|
+
color: $grey-100;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.#{$px}-slide-to-activate__thumb-face {
|
|
249
|
+
background-color: $grey-50;
|
|
250
|
+
color: $grey-100;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// Already completed — settled success look; thumb is always faded out
|
|
255
|
+
&--disabled-complete {
|
|
256
|
+
.#{$px}-slide-to-activate__track {
|
|
257
|
+
background-color: $pure-black;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.#{$px}-slide-to-activate__label {
|
|
261
|
+
color: $pure-white;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// Soft exit for activated / hide-thumb — keep gutter, ease the button away
|
|
266
|
+
&--disabled-hide-thumb {
|
|
267
|
+
.#{$px}-slide-to-activate__thumb,
|
|
268
|
+
.#{$px}-slide-to-activate__thumb--hidden {
|
|
269
|
+
opacity: 0;
|
|
270
|
+
pointer-events: none;
|
|
271
|
+
transition: opacity 100ms ease-out;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
@media (prefers-reduced-motion: reduce) {
|
|
276
|
+
&__track,
|
|
277
|
+
&__label,
|
|
278
|
+
&__pending-indicator,
|
|
279
|
+
&__thumb,
|
|
280
|
+
&__thumb-face {
|
|
281
|
+
transition: none;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use '../../allPartials' as *;
|
|
3
|
+
|
|
4
|
+
$slide-story-max-width: 360px;
|
|
5
|
+
$branded-blush: color.mix($pure-white, $highlight-purple, 88%);
|
|
6
|
+
$branded-rose: color.mix($pure-white, $highlight-purple, 62%);
|
|
7
|
+
$branded-lilac: color.mix($pure-white, $highlight-purple, 45%);
|
|
8
|
+
$branded-petal: color.mix($pure-white, $highlight-red, 82%);
|
|
9
|
+
|
|
10
|
+
.slide-to-activate-story {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: $spacing-sm;
|
|
14
|
+
max-width: $slide-story-max-width;
|
|
15
|
+
touch-action: none;
|
|
16
|
+
width: 100%;
|
|
17
|
+
|
|
18
|
+
&__reset {
|
|
19
|
+
align-self: flex-start;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.slide-to-activate-story-branded {
|
|
24
|
+
background: linear-gradient(165deg, $branded-blush 0%, $pure-white 55%, $branded-petal 100%);
|
|
25
|
+
border-radius: $radius-md;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
max-width: $slide-story-max-width;
|
|
28
|
+
padding: $padding-md;
|
|
29
|
+
width: 100%;
|
|
30
|
+
|
|
31
|
+
.slide-to-activate-story {
|
|
32
|
+
max-width: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.#{$px}-slide-to-activate__track {
|
|
36
|
+
background: linear-gradient(90deg, $branded-lilac 0%, $branded-rose 55%, $branded-petal 100%);
|
|
37
|
+
box-shadow: inset 0 1px 0 rgba($pure-white, 0.55);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.#{$px}-slide-to-activate__thumb-face {
|
|
41
|
+
background: linear-gradient(145deg, $pure-white 0%, $branded-blush 100%);
|
|
42
|
+
border: 2px solid rgba($highlight-purple, 0.35);
|
|
43
|
+
box-shadow: 0 2px 8px rgba($highlight-purple, 0.18);
|
|
44
|
+
color: $highlight-purple;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.#{$px}-slide-to-activate__label {
|
|
48
|
+
color: $pure-white;
|
|
49
|
+
font-variation-settings: 'wght' 500;
|
|
50
|
+
letter-spacing: 0.02em;
|
|
51
|
+
text-shadow: 0 1px 8px rgba($highlight-purple, 0.25);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.#{$px}-slide-to-activate--held .#{$px}-slide-to-activate__thumb-face,
|
|
55
|
+
.#{$px}-slide-to-activate__thumb--held .#{$px}-slide-to-activate__thumb-face {
|
|
56
|
+
border-color: $highlight-purple;
|
|
57
|
+
box-shadow:
|
|
58
|
+
0 0 0 2px rgba($pure-white, 0.85),
|
|
59
|
+
0 4px 14px rgba($highlight-purple, 0.28);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.#{$px}-slide-to-activate--disabled-complete {
|
|
63
|
+
.#{$px}-slide-to-activate__track {
|
|
64
|
+
background: linear-gradient(90deg, $branded-rose 0%, $highlight-purple 100%);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.#{$px}-slide-to-activate__pending-indicator .#{$px}-loader {
|
|
69
|
+
border-color: $pure-white;
|
|
70
|
+
border-bottom-color: transparent;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.slide-to-activate-story-custom-styling {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
gap: $spacing-lg;
|
|
78
|
+
width: 100%;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.slide-to-activate-story-compact {
|
|
82
|
+
.#{$px}-slide-to-activate__track {
|
|
83
|
+
background-color: $pure-white;
|
|
84
|
+
border: 2px solid $pure-black;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.#{$px}-slide-to-activate__label {
|
|
88
|
+
color: $pure-black;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.#{$px}-slide-to-activate__thumb-face {
|
|
92
|
+
background-color: $pure-black;
|
|
93
|
+
border: 2px solid $pure-black;
|
|
94
|
+
color: $pure-white;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.#{$px}-slide-to-activate__pending-indicator .#{$px}-loader {
|
|
98
|
+
border-color: $pure-black;
|
|
99
|
+
border-bottom-color: transparent;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.slide-to-activate-story-disabled-states {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
gap: $spacing-md;
|
|
107
|
+
max-width: $slide-story-max-width;
|
|
108
|
+
width: 100%;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.slide-to-activate-story-widths {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
gap: $spacing-md;
|
|
115
|
+
max-width: 100%;
|
|
116
|
+
overflow-x: hidden;
|
|
117
|
+
touch-action: none;
|
|
118
|
+
width: 100%;
|
|
119
|
+
|
|
120
|
+
&__toast {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
gap: $spacing-xsm;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&__item {
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
gap: $spacing-xsm;
|
|
131
|
+
max-width: 100%;
|
|
132
|
+
width: min(var(--slide-demo-width, #{$slide-story-max-width}), 100%);
|
|
133
|
+
|
|
134
|
+
.slide-to-activate-story {
|
|
135
|
+
max-width: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.#{$px}-slide-to-activate__label {
|
|
139
|
+
font-size: calc(#{$font-size-label-medium} * var(--slide-demo-label-scale, 1));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.slide-to-activate-story-held-demo {
|
|
145
|
+
max-width: $slide-story-max-width;
|
|
146
|
+
|
|
147
|
+
.#{$px}-slide-to-activate__thumb-icon--held {
|
|
148
|
+
color: $highlight-blue;
|
|
149
|
+
filter: drop-shadow(0 0 4px rgba($highlight-blue, 0.55));
|
|
150
|
+
transform: scale(1.55) rotate(28deg);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.#{$px}-slide-to-activate__thumb--held .#{$px}-slide-to-activate__thumb-face {
|
|
154
|
+
background-color: $highlight-blue;
|
|
155
|
+
border-color: $highlight-blue;
|
|
156
|
+
box-shadow:
|
|
157
|
+
0 0 0 3px rgba($highlight-blue, 0.35),
|
|
158
|
+
0 0 0 6px rgba($highlight-blue, 0.15);
|
|
159
|
+
color: $pure-white;
|
|
160
|
+
transform: scale(1.08);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.slide-to-activate-story {
|
|
164
|
+
max-width: none;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
grid-template-areas: 'title action';
|
|
11
11
|
grid-template-columns: auto max-content;
|
|
12
12
|
padding: $spacing-xsm $spacing-sm;
|
|
13
|
+
// Viewport is pointer-events: none so empty space doesn't block the page; re-enable on
|
|
14
|
+
// each toast so actions stay clickable (including when DismissableLayer sets body to none).
|
|
15
|
+
pointer-events: auto;
|
|
13
16
|
|
|
14
17
|
&__content {
|
|
15
18
|
display: flex;
|
|
@@ -89,12 +92,8 @@
|
|
|
89
92
|
max-width: 100vw;
|
|
90
93
|
outline: none;
|
|
91
94
|
padding: $spacing-lg;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
// any dialog is open, and only restores auto on its own layer elements. This
|
|
95
|
-
// viewport is a portal into body (not a DismissableLayer), so it must opt
|
|
96
|
-
// back in explicitly to remain interactive while a modal is open.
|
|
97
|
-
pointer-events: auto;
|
|
95
|
+
// Pass clicks through empty viewport space; individual toasts re-enable pointer events.
|
|
96
|
+
pointer-events: none;
|
|
98
97
|
position: fixed;
|
|
99
98
|
z-index: 99999;
|
|
100
99
|
}
|