@viasat/beam-styles 2.43.2 → 2.45.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/components/panel.module.scss +8 -15
- package/package.json +1 -1
|
@@ -369,14 +369,20 @@ $resize-handle-positions: (
|
|
|
369
369
|
@mixin panel-slide($prop, $hidden, $visible, $duration: $panel-transition-duration) {
|
|
370
370
|
#{$prop}: $hidden;
|
|
371
371
|
&[data-status='open'] {
|
|
372
|
-
transition: $prop $duration ease-out;
|
|
372
|
+
transition: $prop $duration ease-out, box-shadow $duration ease-out;
|
|
373
373
|
#{$prop}: $visible;
|
|
374
|
+
box-shadow: tokens.$bm-comp-panel-shadow;
|
|
374
375
|
@media (prefers-reduced-motion: reduce) {
|
|
375
376
|
transition: none;
|
|
376
377
|
}
|
|
377
378
|
}
|
|
379
|
+
// Fade the shadow out in sync with the slide-out so it doesn't snap off instantly
|
|
380
|
+
// while the panel is still animating away. The box-shadow must live in this same
|
|
381
|
+
// (higher-specificity) rule as the transform transition, otherwise the transform
|
|
382
|
+
// shorthand resets transition-property and the shadow stops animating.
|
|
378
383
|
&[data-status='close'] {
|
|
379
|
-
transition: $prop $duration ease-in;
|
|
384
|
+
transition: $prop $duration ease-in, box-shadow $duration ease-in;
|
|
385
|
+
box-shadow: tokens.$bm-sem-shadow-none;
|
|
380
386
|
@media (prefers-reduced-motion: reduce) {
|
|
381
387
|
transition: none;
|
|
382
388
|
}
|
|
@@ -395,19 +401,6 @@ $resize-handle-positions: (
|
|
|
395
401
|
@include panel-slide(transform, translateY(100%), translateY(0));
|
|
396
402
|
}
|
|
397
403
|
|
|
398
|
-
// Fade the shadow out in sync with the slide-out animation so it doesn't linger
|
|
399
|
-
// after the panel has moved off-screen.
|
|
400
|
-
.#{$panelBaseClass}--overlay[data-status='close'] {
|
|
401
|
-
box-shadow: tokens.$bm-sem-shadow-none;
|
|
402
|
-
transition-property: transform, box-shadow;
|
|
403
|
-
transition-duration: $panel-transition-duration;
|
|
404
|
-
transition-timing-function: ease-in;
|
|
405
|
-
|
|
406
|
-
@media (prefers-reduced-motion: reduce) {
|
|
407
|
-
transition: none;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
|
|
411
404
|
.#{$panelBaseClass}__inline-wrapper {
|
|
412
405
|
overflow: hidden;
|
|
413
406
|
flex-shrink: 0;
|