@sats-group/ui-lib 86.2.2 → 86.2.3

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": "@sats-group/ui-lib",
3
- "version": "86.2.2",
3
+ "version": "86.2.3",
4
4
  "description": "SATS web user interface library",
5
5
  "author": "developer@sats.no",
6
6
  "license": "UNLICENSED",
@@ -53,20 +53,28 @@
53
53
  min-width: 0;
54
54
  opacity: 0;
55
55
  overflow: hidden;
56
- transform: scale(0.85);
56
+
57
+ @media (prefers-reduced-motion: no-preference) {
58
+ transform: scale(0.85);
59
+ }
57
60
  }
58
61
 
59
62
  &__custom-icon--visible {
60
63
  max-width: 999px; // NOTE: This is just so that the component can grow as much as it needs when the icon is shown
61
64
  opacity: 1;
62
- transform: scale(1);
65
+
66
+ @media (prefers-reduced-motion: no-preference) {
67
+ transform: scale(1);
68
+ }
63
69
  }
64
70
 
65
- &__custom-icon--animated {
66
- transition:
67
- max-width 220ms ease,
68
- opacity 160ms ease,
69
- transform 200ms ease;
71
+ @media (prefers-reduced-motion: no-preference) {
72
+ &__custom-icon--animated {
73
+ transition:
74
+ max-width 220ms ease,
75
+ opacity 160ms ease,
76
+ transform 200ms ease;
77
+ }
70
78
  }
71
79
 
72
80
  &__text {
@@ -77,7 +85,9 @@
77
85
  }
78
86
  }
79
87
 
80
- &__custom-icon--animated ~ .chip__text {
81
- transition: margin-left 220ms ease;
88
+ @media (prefers-reduced-motion: no-preference) {
89
+ &__custom-icon--animated ~ .chip__text {
90
+ transition: margin-left 220ms ease;
91
+ }
82
92
  }
83
93
  }