@atom-learning/components 6.1.0 → 6.1.2

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
@@ -4,7 +4,7 @@
4
4
  "main": "dist/index.cjs.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "module": "dist/index.js",
7
- "version": "6.1.0",
7
+ "version": "6.1.2",
8
8
  "description": "",
9
9
  "files": [
10
10
  "dist",
package/src/index.css CHANGED
@@ -90,20 +90,24 @@
90
90
  --animate-slide-in-center: slide-in-center 550ms var(--easing);
91
91
  --animate-slide-out-center: slide-out-center 550ms var(--easing);
92
92
 
93
+ /**
94
+ * `transform: translate()` is required for `floating-ui` to
95
+ * correctly position elements within the Dialog component.
96
+ */
93
97
  @keyframes slide-in-center {
94
98
  0% {
95
- translate: -50% 50vh;
99
+ transform: translate(-50%, 50vh);
96
100
  }
97
101
  100% {
98
- translate: -50% -50%;
102
+ transform: translate(-50%, -50%);
99
103
  }
100
104
  }
101
105
  @keyframes slide-out-center {
102
106
  0% {
103
- translate: -50% -50%;
107
+ transform: translate(-50%, -50%);
104
108
  }
105
109
  100% {
106
- translate: -50% 50vh;
110
+ transform: translate(-50%, 50vh);
107
111
  }
108
112
  }
109
113