@alulore/kumiko 0.18.1 → 0.18.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.
@@ -108,8 +108,10 @@
108
108
  /*
109
109
  * The header, body and footer are stacked with a gap; the description sits close to its title.
110
110
  * Layers inside the panel (a nested dialog, a menu or a popover, all [popover]) place themselves.
111
+ * No sibling combinator here: one led by :not() makes the browser restyle the whole parent of
112
+ * anything inserted or removed anywhere on the page, such as an app root when a dialog opens.
111
113
  */
112
- :where([data-slot$="dialog-content"] > :not([popover]) ~ :not([popover])) {
114
+ :where([data-slot$="dialog-content"] > :not([popover], :first-child)) {
113
115
  margin-block-start: var(--kumiko-dialog-gap);
114
116
  }
115
117
 
@@ -176,7 +178,13 @@
176
178
  backdrop-filter: none;
177
179
  }
178
180
 
179
- :where([data-slot$="dialog-backdrop"]:is([data-starting-style], [data-ending-style])) {
181
+ /*
182
+ * A closed backdrop stays clear: ui-sdk drops the ending style two frames after the fade, and a
183
+ * React unmount on a busy page can come later, which would dim the whole app again for a frame.
184
+ */
185
+ :where(
186
+ [data-slot$="dialog-backdrop"]:is([data-starting-style], [data-ending-style], [data-closed])
187
+ ) {
180
188
  opacity: 0;
181
189
  }
182
190
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alulore/kumiko",
3
- "version": "0.18.1",
3
+ "version": "0.18.3",
4
4
  "description": "Polished, cozy React components with gentle motion, built on ui-sdk. Every look and behaviour can be switched with props and CSS tokens.",
5
5
  "license": "MIT",
6
6
  "repository": {