@loidolt/theme-styles 0.8.0 → 0.8.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": "@loidolt/theme-styles",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Base styles, fonts, accessibility helpers, and utilities for Loidolt applications",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -29,7 +29,7 @@
29
29
  "build": "node -e \"console.log('theme-styles: source CSS is publish-ready')\""
30
30
  },
31
31
  "dependencies": {
32
- "@loidolt/theme-tokens": "^0.8.0"
32
+ "@loidolt/theme-tokens": "^0.8.1"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public",
@@ -9,7 +9,11 @@
9
9
  z-index: var(--loidolt-z-dialog);
10
10
  top: 50%;
11
11
  left: 50%;
12
- display: grid;
12
+ /* A column whose body alone shrinks and scrolls, so the header and the footer's actions stay in
13
+ view however tall the content (or short the screen). Flex rather than grid rows, because an
14
+ AlertDialog without content has no body. */
15
+ display: flex;
16
+ flex-direction: column;
13
17
  width: min(var(--ldt-dialog-width, 34rem), calc(100vw - 2rem));
14
18
  max-height: min(48rem, calc(100dvh - 2rem));
15
19
  overflow: hidden;
@@ -36,7 +40,6 @@
36
40
  --ldt-dialog-width: 100vw;
37
41
  height: calc(100dvh - 2rem);
38
42
  max-height: none;
39
- grid-template-rows: auto minmax(0, 1fr) auto;
40
43
  }
41
44
  .ldt-dialog__actions {
42
45
  display: flex;
@@ -49,6 +52,10 @@
49
52
  .ldt-dialog__footer {
50
53
  padding: var(--loidolt-pad-overlay);
51
54
  }
55
+ .ldt-dialog__header,
56
+ .ldt-dialog__footer {
57
+ flex: none;
58
+ }
52
59
  .ldt-dialog__header {
53
60
  display: flex;
54
61
  align-items: start;
@@ -61,6 +68,8 @@
61
68
  min-width: 0;
62
69
  }
63
70
  .ldt-dialog__body {
71
+ flex: 1 1 auto;
72
+ min-height: 0;
64
73
  overflow-y: auto;
65
74
  }
66
75
  .ldt-dialog__footer {