shelving 1.282.0 → 1.282.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shelving",
3
- "version": "1.282.0",
3
+ "version": "1.282.1",
4
4
  "author": "Dave Houlbrooke <dave@shax.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -58,7 +58,7 @@ function DeleteButton({ id }: { id: string }) {
58
58
  |---|---|---|
59
59
  | `--dialog-padding` | Padding around the centred content | `var(--space-normal)` (16px) |
60
60
  | `--dialog-color-overlay` | Backdrop fill behind the content | `var(--color-shadow)` |
61
- | `--dialog-transition` | Open / close transition | `all var(--duration-fast)` (150ms) |
61
+ | `--dialog-transition` | Open / close transition (a fixed discrete `display` transition runs alongside it so the fade animates across the show / hide toggle) | `all var(--duration-fast)` (150ms) |
62
62
  | `--dialog-close-offset` | Inset of the close button from the top-right corner | `var(--space-small)` (8px) |
63
63
 
64
64
  **Global tokens it reads** — move these to retheme broadly: `--space-normal`, `--space-small`, `--color-shadow`, and `--duration-fast`.
@@ -21,9 +21,12 @@
21
21
  /* Style */
22
22
  background: var(--dialog-color-overlay, var(--shadow-color));
23
23
  opacity: 0;
24
- transition: var(--dialog-transition, all var(--duration-fast));
24
+ transition:
25
+ var(--dialog-transition, all var(--duration-fast)),
26
+ display var(--duration-fast) allow-discrete;
25
27
 
26
28
  &[open] {
29
+ display: flex;
27
30
  opacity: 1;
28
31
  }
29
32