@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.31

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.
Files changed (205) hide show
  1. package/package.json +13 -1
  2. package/src/accordion/accordion.css +11 -11
  3. package/src/action-bar/action-bar.css +47 -44
  4. package/src/action-bar/action-bar.tokens.json +1 -0
  5. package/src/action-sheet/action-sheet.css +39 -39
  6. package/src/alert/alert.css +97 -97
  7. package/src/alert/alert.tokens.json +6 -1
  8. package/src/app-shell/app-shell.css +456 -329
  9. package/src/app-shell/app-shell.tokens.json +6 -3
  10. package/src/aspect-ratio/aspect-ratio.css +9 -9
  11. package/src/attachment/attachment.css +118 -114
  12. package/src/avatar/avatar.css +96 -66
  13. package/src/avatar/avatar.tokens.json +7 -0
  14. package/src/avatar-group/avatar-group.css +22 -23
  15. package/src/badge/badge.css +54 -46
  16. package/src/badge/badge.tokens.json +5 -0
  17. package/src/breadcrumb/breadcrumb.css +52 -52
  18. package/src/button/button.css +137 -89
  19. package/src/button/button.tokens.json +5 -0
  20. package/src/button-group/button-group.css +80 -79
  21. package/src/button-group/button-group.tokens.json +1 -0
  22. package/src/calendar/calendar.css +139 -109
  23. package/src/calendar/calendar.tokens.json +5 -1
  24. package/src/card/card.css +70 -67
  25. package/src/card/card.tokens.json +1 -0
  26. package/src/carousel/carousel.css +158 -169
  27. package/src/cascader/cascader.css +161 -159
  28. package/src/cascader/cascader.tokens.json +2 -0
  29. package/src/chart/chart.css +288 -267
  30. package/src/chart/chart.tokens.json +4 -0
  31. package/src/checkbox/checkbox.css +143 -148
  32. package/src/checkbox-group/checkbox-group.css +7 -7
  33. package/src/code-block/code-block.css +85 -89
  34. package/src/collapsible/collapsible.css +81 -80
  35. package/src/collapsible/collapsible.tokens.json +1 -0
  36. package/src/color-picker/color-picker.css +106 -114
  37. package/src/column-manager/column-manager.css +111 -119
  38. package/src/combobox/combobox.css +206 -132
  39. package/src/combobox/combobox.tokens.json +4 -0
  40. package/src/command-palette/command-palette.css +155 -102
  41. package/src/command-palette/command-palette.tokens.json +2 -0
  42. package/src/container/container.css +27 -27
  43. package/src/context-menu/context-menu.css +9 -9
  44. package/src/currency-field/currency-field.css +119 -119
  45. package/src/currency-field/currency-field.tokens.json +1 -0
  46. package/src/dashboard-grid/dashboard-grid.css +204 -115
  47. package/src/data-grid/data-grid.css +598 -496
  48. package/src/data-grid/data-grid.tokens.json +5 -1
  49. package/src/data-list/data-list.css +82 -71
  50. package/src/data-list/data-list.tokens.json +2 -1
  51. package/src/date-field/date-field.css +62 -57
  52. package/src/date-field/date-field.tokens.json +1 -0
  53. package/src/date-picker/date-picker.css +117 -58
  54. package/src/date-picker/date-picker.tokens.json +5 -0
  55. package/src/date-range-picker/date-range-picker.css +157 -127
  56. package/src/date-range-picker/date-range-picker.tokens.json +4 -0
  57. package/src/datetime-field/datetime-field.css +90 -90
  58. package/src/datetime-field/datetime-field.tokens.json +1 -0
  59. package/src/datetime-picker/datetime-picker.css +123 -70
  60. package/src/datetime-picker/datetime-picker.tokens.json +4 -1
  61. package/src/datetime-range-picker/datetime-range-picker.css +191 -163
  62. package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
  63. package/src/description-list/description-list.css +105 -75
  64. package/src/description-list/description-list.tokens.json +1 -0
  65. package/src/detail-panel/detail-panel.css +86 -71
  66. package/src/detail-panel/detail-panel.tokens.json +2 -0
  67. package/src/dialog/dialog.css +435 -199
  68. package/src/dialog/dialog.tokens.json +9 -0
  69. package/src/divider/divider.css +20 -20
  70. package/src/drawer/drawer.css +598 -237
  71. package/src/drawer/drawer.tokens.json +14 -0
  72. package/src/entity-picker/entity-picker.css +326 -272
  73. package/src/entity-picker/entity-picker.tokens.json +4 -0
  74. package/src/event-calendar/event-calendar.css +357 -399
  75. package/src/field/field.css +106 -93
  76. package/src/field/field.tokens.json +2 -0
  77. package/src/field-group/field-group.css +43 -33
  78. package/src/field-group/field-group.tokens.json +3 -0
  79. package/src/filter-bar/filter-bar.css +200 -216
  80. package/src/form/form.css +100 -26
  81. package/src/form/form.tokens.json +6 -1
  82. package/src/fullscreen/fullscreen.css +26 -27
  83. package/src/grid/grid.css +29 -29
  84. package/src/highlight/highlight.css +11 -11
  85. package/src/hover-card/hover-card.css +9 -9
  86. package/src/icon/icon.css +67 -20
  87. package/src/icon/icon.tokens.json +1 -0
  88. package/src/image/image.css +42 -42
  89. package/src/import-export-center/import-export-center.css +147 -168
  90. package/src/import-export-center/import-export-center.tokens.json +1 -0
  91. package/src/inline/inline.css +28 -28
  92. package/src/inline-message/inline-message.css +162 -86
  93. package/src/inline-message/inline-message.tokens.json +4 -0
  94. package/src/kbd/kbd.css +62 -50
  95. package/src/kbd/kbd.tokens.json +3 -0
  96. package/src/link/link.css +54 -33
  97. package/src/link/link.tokens.json +4 -0
  98. package/src/list/list.css +23 -23
  99. package/src/list-item/list-item.css +89 -75
  100. package/src/list-item/list-item.tokens.json +7 -0
  101. package/src/listbox/listbox.css +71 -70
  102. package/src/listbox/listbox.tokens.json +0 -1
  103. package/src/loading-overlay/loading-overlay.css +86 -103
  104. package/src/markdown/markdown.css +20 -20
  105. package/src/media-viewer/media-viewer.css +790 -0
  106. package/src/media-viewer/media-viewer.tokens.json +53 -0
  107. package/src/menu/menu.css +166 -83
  108. package/src/menu/menu.tokens.json +3 -1
  109. package/src/menubar/menubar.css +16 -16
  110. package/src/message/message.css +1253 -1246
  111. package/src/message/message.tokens.json +5 -0
  112. package/src/message-scroller/message-scroller.css +323 -320
  113. package/src/multi-select/multi-select.css +233 -174
  114. package/src/multi-select/multi-select.tokens.json +3 -0
  115. package/src/navigation-menu/navigation-menu.css +170 -191
  116. package/src/navigation-menu/navigation-menu.tokens.json +1 -0
  117. package/src/notification-center/notification-center.css +155 -163
  118. package/src/notification-center/notification-center.tokens.json +4 -0
  119. package/src/number-field/number-field.css +93 -93
  120. package/src/number-field/number-field.tokens.json +1 -0
  121. package/src/otp-input/otp-input.css +74 -64
  122. package/src/otp-input/otp-input.tokens.json +1 -0
  123. package/src/page/page.css +41 -27
  124. package/src/page/page.tokens.json +1 -0
  125. package/src/page-header/page-header.css +342 -287
  126. package/src/page-header/page-header.tokens.json +6 -1
  127. package/src/pagination/pagination.css +75 -79
  128. package/src/popover/popover.css +85 -65
  129. package/src/popover/popover.tokens.json +2 -0
  130. package/src/progress-indicator/progress-indicator.css +192 -136
  131. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  132. package/src/prompt-composer/prompt-composer.css +260 -113
  133. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  134. package/src/prose/prose.css +77 -82
  135. package/src/radio-group/radio-group.css +107 -112
  136. package/src/rating/rating.css +146 -142
  137. package/src/rating/rating.tokens.json +1 -0
  138. package/src/result-state/result-state.css +95 -102
  139. package/src/result-state/result-state.tokens.json +1 -0
  140. package/src/runtime-properties.mjs +19 -6
  141. package/src/saved-views/saved-views.css +43 -49
  142. package/src/scroll-area/scroll-area.css +50 -37
  143. package/src/section/section.css +179 -44
  144. package/src/section/section.tokens.json +9 -3
  145. package/src/segmented-control/segmented-control.css +210 -133
  146. package/src/segmented-control/segmented-control.tokens.json +7 -11
  147. package/src/select/select.css +213 -149
  148. package/src/select/select.tokens.json +4 -0
  149. package/src/side-navigation/side-navigation.css +201 -198
  150. package/src/side-navigation/side-navigation.tokens.json +1 -0
  151. package/src/skeleton/skeleton.css +57 -58
  152. package/src/slider/slider.css +101 -103
  153. package/src/sparkline/sparkline.css +75 -53
  154. package/src/sparkline/sparkline.tokens.json +2 -0
  155. package/src/spinner/spinner.css +83 -180
  156. package/src/spinner/spinner.tokens.json +0 -1
  157. package/src/split-button/split-button.css +34 -35
  158. package/src/split-button/split-button.tokens.json +1 -0
  159. package/src/splitter/splitter.css +47 -48
  160. package/src/stack/stack.css +25 -25
  161. package/src/stat-card/stat-card.css +415 -245
  162. package/src/stat-card/stat-card.tokens.json +8 -0
  163. package/src/status-indicator/status-indicator.css +124 -100
  164. package/src/status-indicator/status-indicator.tokens.json +0 -3
  165. package/src/stepper/stepper.css +78 -82
  166. package/src/switch/switch.css +100 -106
  167. package/src/table/table.css +270 -198
  168. package/src/table/table.tokens.json +2 -0
  169. package/src/table-of-contents/table-of-contents.css +60 -59
  170. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  171. package/src/tabs/tabs.css +327 -294
  172. package/src/tabs/tabs.tokens.json +7 -1
  173. package/src/tag/tag.css +109 -88
  174. package/src/tag/tag.tokens.json +10 -0
  175. package/src/tags-input/tags-input.css +152 -87
  176. package/src/tags-input/tags-input.tokens.json +7 -1
  177. package/src/text-field/text-field.css +146 -148
  178. package/src/text-field/text-field.tokens.json +1 -0
  179. package/src/textarea/textarea.css +38 -33
  180. package/src/textarea/textarea.tokens.json +1 -0
  181. package/src/time-field/time-field.css +82 -77
  182. package/src/time-field/time-field.tokens.json +1 -0
  183. package/src/time-picker/time-picker.css +116 -64
  184. package/src/time-picker/time-picker.tokens.json +4 -1
  185. package/src/time-range-picker/time-range-picker.css +168 -140
  186. package/src/time-range-picker/time-range-picker.tokens.json +4 -0
  187. package/src/timeline/timeline.css +280 -292
  188. package/src/timeline/timeline.tokens.json +5 -0
  189. package/src/toast/toast.css +139 -122
  190. package/src/toast/toast.tokens.json +7 -0
  191. package/src/toggle/toggle.css +34 -38
  192. package/src/toggle-group/toggle-group.css +73 -77
  193. package/src/toolbar/toolbar.css +33 -38
  194. package/src/tooltip/tooltip.css +65 -39
  195. package/src/tooltip/tooltip.tokens.json +1 -0
  196. package/src/top-navigation/top-navigation.css +252 -268
  197. package/src/tour/tour.css +68 -74
  198. package/src/tour/tour.tokens.json +1 -0
  199. package/src/transfer/transfer.css +164 -168
  200. package/src/tree/tree.css +113 -121
  201. package/src/typography/typography.css +42 -38
  202. package/src/typography/typography.tokens.json +1 -0
  203. package/src/upload/upload.css +256 -257
  204. package/src/visually-hidden/visually-hidden.css +1 -1
  205. package/src/wizard/wizard.css +187 -199
@@ -15,7 +15,7 @@
15
15
  * sunken surface, with each widget a raised card on it; the page decides
16
16
  * that ground, and every mark below is drawn to read on it.
17
17
  */
18
- [data-ui='dashboard-grid'] {
18
+ [data-ui-dashboard-grid] {
19
19
  --_gap: var(--slotted-dashboard-grid-gap, var(--slotted-space-6, 1rem));
20
20
  --_row: var(--slotted-dashboard-grid-row-size, 4.5rem);
21
21
  --_cols: var(--_dg-columns-expanded, 12);
@@ -29,10 +29,20 @@
29
29
  min-inline-size: 0;
30
30
  }
31
31
 
32
- [data-ui='dashboard-grid'] > [data-part='grid'] {
32
+ /**
33
+ * A row is the unit a reader moves and resizes by; the tracks are twelve
34
+ * times finer (`DASHBOARD_SUBROWS` in `@slotted/core/dashboard-grid`), so a
35
+ * widget sized by its content ends within a twelfth of a row's step of it.
36
+ * The tracks have no gap between them: each widget draws the gap as its
37
+ * margin below, inside its own cells, and the grid takes the last one back.
38
+ * A widget of `h` rows is `h` rows and `h - 1` gaps tall, as before.
39
+ */
40
+ [data-ui-dashboard-grid] > [data-part-grid] {
41
+ column-gap: var(--_gap);
33
42
  display: grid;
34
- gap: var(--_gap);
35
- grid-auto-rows: var(--_row);
43
+ grid-auto-rows: calc((var(--_row) + var(--_gap)) / 12);
44
+ margin-block-end: calc(-1 * var(--_gap));
45
+ row-gap: 0;
36
46
  grid-template-columns: repeat(var(--_cols), minmax(0, 1fr));
37
47
  list-style: none;
38
48
  margin: 0;
@@ -43,8 +53,8 @@
43
53
  }
44
54
 
45
55
  /* `display: grid` above would otherwise override the attribute. */
46
- [data-ui='dashboard-grid'] [data-part='grid'][hidden],
47
- [data-ui='dashboard-grid'] [data-part='widget'][hidden] {
56
+ [data-ui-dashboard-grid] [data-part-grid][hidden],
57
+ [data-ui-dashboard-grid] [data-part-widget][hidden] {
48
58
  display: none;
49
59
  }
50
60
 
@@ -52,14 +62,15 @@
52
62
  * In the expanded class every widget stands at its own cell. The DOM holds
53
63
  * them by row, then column, so the order a reader walks is the picture's.
54
64
  */
55
- [data-ui='dashboard-grid'] :is([data-part='widget'], [data-part='placeholder']) {
65
+ [data-ui-dashboard-grid] :is([data-part-widget], [data-part-placeholder]) {
56
66
  grid-column: var(--_dg-x, auto) / span var(--_dg-w, 4);
57
- grid-row: var(--_dg-y, auto) / span var(--_dg-h, 2);
67
+ grid-row: var(--_dg-y, auto) / span var(--_dg-h, 24);
68
+ margin-block-end: var(--_gap);
58
69
  min-block-size: 0;
59
70
  min-inline-size: 0;
60
71
  }
61
72
 
62
- [data-ui='dashboard-grid'] [data-part='widget'] {
73
+ [data-ui-dashboard-grid] [data-part-widget] {
63
74
  display: flex;
64
75
  position: relative;
65
76
  }
@@ -68,37 +79,69 @@
68
79
  * The medium class flows the same order, each widget a half or the whole
69
80
  * of the row; its height stays in rows. The compact class is one
70
81
  * column whose widgets are as tall as their content, the way a phone reads a
71
- * dashboard. The thresholds are the size classes of §2.7, literal because
72
- * CSS refuses a custom property in a container condition.
82
+ * dashboard. Once the binding has measured the grid it writes the class on
83
+ * the root (`data-size-class`, from `expandedFrom`), and the rules follow
84
+ * the attribute. Before that the container queries draw the classes at the
85
+ * thresholds of §2.7, literal because CSS refuses a custom property in a
86
+ * container condition.
73
87
  */
74
88
  @container dashboard-grid (width < 1024px) {
75
- [data-ui='dashboard-grid'] > [data-part='grid'] {
89
+ [data-ui-dashboard-grid]:not([data-size-class]) > [data-part-grid] {
76
90
  --_cols: var(--_dg-columns-medium, 6);
77
91
  }
78
92
 
79
- [data-ui='dashboard-grid'] :is([data-part='widget'], [data-part='placeholder']) {
93
+ [data-ui-dashboard-grid]:not([data-size-class])
94
+ :is([data-part-widget], [data-part-placeholder]) {
80
95
  grid-column: auto / span var(--_dg-span-medium, 3);
81
- grid-row: auto / span var(--_dg-h, 2);
96
+ grid-row: auto / span var(--_dg-h, 24);
82
97
  }
83
98
  }
84
99
 
100
+ [data-ui-dashboard-grid]:is([data-size-class='medium'], [data-size-class='compact'])
101
+ > [data-part-grid] {
102
+ --_cols: var(--_dg-columns-medium, 6);
103
+ }
104
+
105
+ [data-ui-dashboard-grid]:is([data-size-class='medium'], [data-size-class='compact'])
106
+ :is([data-part-widget], [data-part-placeholder]) {
107
+ grid-column: auto / span var(--_dg-span-medium, 3);
108
+ grid-row: auto / span var(--_dg-h, 24);
109
+ }
110
+
85
111
  @container dashboard-grid (width < 600px) {
86
- [data-ui='dashboard-grid'] > [data-part='grid'] {
112
+ [data-ui-dashboard-grid]:not([data-size-class]) > [data-part-grid] {
87
113
  --_cols: var(--_dg-columns-compact, 1);
88
114
 
89
115
  grid-auto-rows: auto;
90
116
  }
91
117
 
92
- [data-ui='dashboard-grid'] :is([data-part='widget'], [data-part='placeholder']) {
118
+ [data-ui-dashboard-grid]:not([data-size-class])
119
+ :is([data-part-widget], [data-part-placeholder]) {
93
120
  grid-column: 1 / -1;
94
121
  grid-row: auto;
95
122
  }
96
123
 
97
- [data-ui='dashboard-grid'] [data-part='placeholder'] {
124
+ [data-ui-dashboard-grid]:not([data-size-class]) [data-part-placeholder] {
98
125
  min-block-size: calc(var(--_row) * 2);
99
126
  }
100
127
  }
101
128
 
129
+ [data-ui-dashboard-grid][data-size-class='compact'] > [data-part-grid] {
130
+ --_cols: var(--_dg-columns-compact, 1);
131
+
132
+ grid-auto-rows: auto;
133
+ }
134
+
135
+ [data-ui-dashboard-grid][data-size-class='compact']
136
+ :is([data-part-widget], [data-part-placeholder]) {
137
+ grid-column: 1 / -1;
138
+ grid-row: auto;
139
+ }
140
+
141
+ [data-ui-dashboard-grid][data-size-class='compact'] [data-part-placeholder] {
142
+ min-block-size: calc(var(--_row) * 2);
143
+ }
144
+
102
145
  /* ── The widget ──────────────────────────────────────────────────────── */
103
146
 
104
147
  /**
@@ -107,17 +150,20 @@
107
150
  * than the cell grows into it, so a chart or a figure uses the height the
108
151
  * reader gave the widget rather than stopping at its own size step.
109
152
  */
110
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-ui='card'] {
153
+ [data-ui-dashboard-grid] [data-part-widget] > [data-ui-card] {
111
154
  flex: 1 1 auto;
112
155
  min-block-size: 0;
113
156
  min-inline-size: 0;
114
157
  transition: box-shadow var(--slotted-duration-medium) var(--slotted-easing-standard);
115
158
  }
116
159
 
117
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-ui='card'] > [data-part='body'] {
160
+ [data-ui-dashboard-grid] [data-part-widget] > [data-ui-card] > [data-part-body] {
118
161
  /* A chart's plot takes whatever height the widget leaves it, down to a
119
- floor of one and a half rows, instead of its own size step. */
162
+ floor of one and a half rows, instead of its own size step: the
163
+ reader sizes a widget, and every step answers to that size. */
120
164
  --slotted-chart-plot-block-size: calc(var(--_row) * 1.5);
165
+ --slotted-chart-plot-block-size-sm: calc(var(--_row) * 1.5);
166
+ --slotted-chart-plot-block-size-lg: calc(var(--_row) * 1.5);
121
167
 
122
168
  display: flex;
123
169
  flex-direction: column;
@@ -128,20 +174,30 @@
128
174
  /* The content grows into a taller cell and never shrinks under its own
129
175
  height: shrunk, it overflowed its own box, and the body scrolled only that
130
176
  overflow, so its last rows and the end padding stayed out of reach. */
131
- [data-ui='dashboard-grid']
132
- [data-part='widget']
133
- > [data-ui='card']
134
- > [data-part='body']
135
- > :not([data-part='busy-indicator']) {
177
+ [data-ui-dashboard-grid]
178
+ [data-part-widget]
179
+ > [data-ui-card]
180
+ > [data-part-body]
181
+ > :not([data-part-busy-indicator]) {
136
182
  flex: 1 0 auto;
137
183
  }
138
184
 
185
+ /* A widget sized by its content is measured by it: what its body holds
186
+ keeps its own height, and the cell is that height to a twelfth of a row. */
187
+ [data-ui-dashboard-grid]
188
+ [data-part-widget][data-rows='auto']
189
+ > [data-ui-card]
190
+ > [data-part-body]
191
+ > :not([data-part-busy-indicator]) {
192
+ flex-grow: 0;
193
+ }
194
+
139
195
  /**
140
196
  * The title is the widget's name and a card header's first line: the
141
197
  * medium step, semibold, two lines and then an ellipsis. The clamp never
142
198
  * removes a word from the DOM, and the article is named by the whole of it.
143
199
  */
144
- [data-ui='dashboard-grid'] [data-part='widget'] [data-part='title'] {
200
+ [data-ui-dashboard-grid] [data-part-widget] [data-part-title] {
145
201
  -webkit-box-orient: vertical;
146
202
  color: var(--slotted-dashboard-grid-title-color, var(--slotted-text, CanvasText));
147
203
  display: -webkit-box;
@@ -165,7 +221,26 @@
165
221
  overflow-wrap: anywhere;
166
222
  }
167
223
 
168
- [data-ui='dashboard-grid'] [data-part='widget'] [data-part='description'] {
224
+ /* The title and its help control on one row; the control centers on the
225
+ title's first line without adding to the row's height. */
226
+ [data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] {
227
+ align-items: flex-start;
228
+ display: flex;
229
+ gap: var(--slotted-space-1, 0.125rem);
230
+ }
231
+
232
+ [data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] > [data-part-help] {
233
+ flex: none;
234
+ margin-block: calc(
235
+ (
236
+ var(--slotted-control-height-sm, 1.75rem) - var(--slotted-font-size-md, 0.8125rem) *
237
+ var(--slotted-line-height-md, 1.5)
238
+ ) /
239
+ -2
240
+ );
241
+ }
242
+
243
+ [data-ui-dashboard-grid] [data-part-widget] [data-part-description] {
169
244
  color: var(--slotted-dashboard-grid-description-color, var(--slotted-text-muted, GrayText));
170
245
  font-size: var(--slotted-font-size-sm, 0.75rem);
171
246
  line-height: var(--slotted-line-height-sm, 1.5);
@@ -175,7 +250,7 @@
175
250
 
176
251
  /* The corner of the header: the consumer's actions, then the way to the
177
252
  widget's own page, on the title's row without adding to its height. */
178
- [data-ui='dashboard-grid'] [data-part='widget'] [data-part='actions'] {
253
+ [data-ui-dashboard-grid] [data-part-widget] [data-part-actions] {
179
254
  flex-wrap: nowrap;
180
255
  gap: var(--slotted-space-1, 0.125rem);
181
256
  margin-block: calc(
@@ -199,19 +274,19 @@
199
274
  * its own: the family does not know what the body holds, but does know its
200
275
  * box — the grid fixed it.
201
276
  */
202
- [data-ui='dashboard-grid'] [data-part='widget'] [data-part='skeleton'] {
277
+ [data-ui-dashboard-grid] [data-part-widget] [data-part-skeleton] {
203
278
  display: flex;
204
279
  flex-direction: column;
205
280
  min-block-size: var(--slotted-space-12, 4rem);
206
281
  }
207
282
 
208
- [data-ui='dashboard-grid'] [data-part='widget'] [data-part='skeleton'] > [data-ui='skeleton'] {
283
+ [data-ui-dashboard-grid] [data-part-widget] [data-part-skeleton] > [data-ui-skeleton] {
209
284
  block-size: auto;
210
285
  flex: 1 1 auto;
211
286
  inline-size: 100%;
212
287
  }
213
288
 
214
- [data-ui='dashboard-grid'] [data-part='widget'] [data-part='message'] {
289
+ [data-ui-dashboard-grid] [data-part-widget] [data-part-message] {
215
290
  align-content: center;
216
291
  display: grid;
217
292
  justify-items: center;
@@ -222,7 +297,7 @@
222
297
  * the body, where Grafana draws its panel's. It is aria-hidden: the article
223
298
  * carries `aria-busy`, which is the fact, and the line is only its picture.
224
299
  */
225
- [data-ui='dashboard-grid'] [data-part='widget'] [data-part='busy-indicator'] {
300
+ [data-ui-dashboard-grid] [data-part-widget] [data-part-busy-indicator] {
226
301
  background-color: var(--_accent);
227
302
  block-size: var(--slotted-border-width-medium, 2px);
228
303
  inset-block-start: 0;
@@ -233,7 +308,7 @@
233
308
  }
234
309
 
235
310
  @media (prefers-reduced-motion: no-preference) {
236
- [data-ui='dashboard-grid'] [data-part='widget'] [data-part='busy-indicator'] {
311
+ [data-ui-dashboard-grid] [data-part-widget] [data-part-busy-indicator] {
237
312
  animation: slotted-dashboard-grid-busy var(--slotted-duration-loop-slow) linear infinite;
238
313
  background-color: transparent;
239
314
  background-image: linear-gradient(to right, transparent, var(--_accent) 50%, transparent);
@@ -244,7 +319,7 @@
244
319
  }
245
320
 
246
321
  @media (prefers-reduced-motion: reduce) {
247
- [data-ui='dashboard-grid'] [data-part='widget'] [data-part='busy-indicator'] {
322
+ [data-ui-dashboard-grid] [data-part-widget] [data-part-busy-indicator] {
248
323
  animation: none;
249
324
  }
250
325
  }
@@ -266,7 +341,7 @@
266
341
  * the card's hairline and the smallest lift — so on the sunken page it reads
267
342
  * as a tool laid over the dashboard rather than a stripe cut into it.
268
343
  */
269
- [data-ui='dashboard-grid'] > [data-part='edit-bar'] {
344
+ [data-ui-dashboard-grid] > [data-part-edit-bar] {
270
345
  align-items: center;
271
346
  background-color: var(
272
347
  --slotted-dashboard-grid-edit-bar-background,
@@ -284,19 +359,19 @@
284
359
  }
285
360
 
286
361
  @starting-style {
287
- [data-ui='dashboard-grid'] > [data-part='edit-bar'] {
362
+ [data-ui-dashboard-grid] > [data-part-edit-bar] {
288
363
  opacity: 0;
289
364
  translate: 0 calc(var(--slotted-space-4, 0.5rem) * -1);
290
365
  }
291
366
  }
292
367
 
293
- [data-ui='dashboard-grid'] > [data-part='edit-bar'] {
368
+ [data-ui-dashboard-grid] > [data-part-edit-bar] {
294
369
  transition:
295
370
  opacity var(--slotted-duration-medium) var(--slotted-easing-enter),
296
371
  translate var(--slotted-duration-medium) var(--slotted-easing-enter);
297
372
  }
298
373
 
299
- [data-ui='dashboard-grid'] > [data-part='edit-bar'] > [data-part='edit-status'] {
374
+ [data-ui-dashboard-grid] > [data-part-edit-bar] > [data-part-edit-status] {
300
375
  color: var(--slotted-text-muted, GrayText);
301
376
  flex: 1 1 20rem;
302
377
  font-size: var(--slotted-font-size-sm, 0.75rem);
@@ -305,7 +380,7 @@
305
380
  min-inline-size: 0;
306
381
  }
307
382
 
308
- [data-ui='dashboard-grid'] > [data-part='edit-bar'] > [data-part='edit-actions'] {
383
+ [data-ui-dashboard-grid] > [data-part-edit-bar] > [data-part-edit-actions] {
309
384
  align-items: center;
310
385
  display: flex;
311
386
  flex-wrap: wrap;
@@ -317,7 +392,7 @@
317
392
  /* ── Editing: the lattice ────────────────────────────────────────────── */
318
393
 
319
394
  /**
320
- * The cells a widget snaps to are shown by their centres: one dot in the
395
+ * The cells a widget snaps to are shown by their centers: one dot in the
321
396
  * middle of each cell. One period is a track and a gap on each axis and
322
397
  * the dot sits at the middle of the track, so the lattice lands on the
323
398
  * cells from either edge and holds in a right-to-left document without a
@@ -325,7 +400,7 @@
325
400
  * dot that shows marks a free cell; a dot on the crossing of two gaps
326
401
  * showed between cards and under them, where no widget can land.
327
402
  */
328
- [data-ui='dashboard-grid'] > [data-part='grid']::before {
403
+ [data-ui-dashboard-grid] > [data-part-grid]::before {
329
404
  background-image: radial-gradient(
330
405
  circle at calc((100% - var(--_gap)) / 2) calc((100% - var(--_gap)) / 2),
331
406
  var(--slotted-dashboard-grid-lattice-color, var(--slotted-border-strong, currentColor))
@@ -341,49 +416,54 @@
341
416
  transition: opacity var(--slotted-duration-medium) var(--slotted-easing-standard);
342
417
  }
343
418
 
344
- [data-ui='dashboard-grid'][data-editing] > [data-part='grid'] {
419
+ [data-ui-dashboard-grid][data-editing] > [data-part-grid] {
345
420
  min-block-size: calc(var(--_row) * 2 + var(--_gap));
346
421
  }
347
422
 
348
- [data-ui='dashboard-grid'][data-editing] > [data-part='grid']::before {
423
+ [data-ui-dashboard-grid][data-editing] > [data-part-grid]::before {
349
424
  opacity: 0.7;
350
425
  }
351
426
 
352
427
  /* While a widget is carried or pulled the lattice is what it snaps to, so
353
428
  it comes forward. The attribute is on the grid, in the compound it styles:
354
429
  a browser invalidates by attribute name, and on the root ahead of
355
- `> [data-part='grid']` it restyled every element with a `data-part`
430
+ `> [data-part-grid]` it restyled every element with a `data-part`
356
431
  under the root as a widget was picked up and as it was dropped. */
357
- [data-ui='dashboard-grid'] > [data-part='grid'][data-gesture]::before {
432
+ [data-ui-dashboard-grid] > [data-part-grid][data-gesture]::before {
358
433
  opacity: 1;
359
434
  }
360
435
 
361
436
  /* Below the expanded class the widgets flow, so no cell is a place to drop
362
437
  on and the lattice would be specks in the gaps. */
363
438
  @container dashboard-grid (width < 1024px) {
364
- [data-ui='dashboard-grid'] > [data-part='grid']::before {
439
+ [data-ui-dashboard-grid]:not([data-size-class]) > [data-part-grid]::before {
365
440
  display: none;
366
441
  }
367
442
  }
368
443
 
444
+ [data-ui-dashboard-grid]:is([data-size-class='medium'], [data-size-class='compact'])
445
+ > [data-part-grid]::before {
446
+ display: none;
447
+ }
448
+
369
449
  /* ── Editing: the widget ─────────────────────────────────────────────── */
370
450
 
371
451
  /* The whole card is a place to pick the widget up from; its controls keep
372
452
  their own cursor because each is its own target. */
373
- [data-ui='dashboard-grid'][data-editing] [data-part='widget'][data-movable] > [data-ui='card'] {
453
+ [data-ui-dashboard-grid][data-editing] [data-part-widget][data-movable] > [data-ui-card] {
374
454
  cursor: grab;
375
455
  }
376
456
 
377
- [data-ui='dashboard-grid'][data-editing]
378
- [data-part='widget'][data-movable]
379
- > [data-ui='card']
457
+ [data-ui-dashboard-grid][data-editing]
458
+ [data-part-widget][data-movable]
459
+ > [data-ui-card]
380
460
  :is(a, button, input, select, textarea, [tabindex]) {
381
461
  cursor: auto;
382
462
  }
383
463
 
384
- [data-ui='dashboard-grid'][data-editing]
385
- [data-part='widget']:not([data-loading]):hover
386
- > [data-ui='card'] {
464
+ [data-ui-dashboard-grid][data-editing]
465
+ [data-part-widget]:not([data-loading]):hover
466
+ > [data-ui-card] {
387
467
  box-shadow: var(--slotted-shadow-sm);
388
468
  }
389
469
 
@@ -395,7 +475,7 @@
395
475
  * pill is drawn on the raised surface with the control's own edge, so it
396
476
  * reads as part of the card rather than as a button beside it.
397
477
  */
398
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-part='handle'] {
478
+ [data-ui-dashboard-grid] [data-part-widget] > [data-part-handle] {
399
479
  --_pill-inline: var(--slotted-dashboard-grid-handle-inline-size, 2.25rem);
400
480
  --_pill-block: var(--slotted-dashboard-grid-handle-block-size, 1rem);
401
481
 
@@ -430,7 +510,7 @@
430
510
  }
431
511
 
432
512
  @starting-style {
433
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-part='handle'] {
513
+ [data-ui-dashboard-grid] [data-part-widget] > [data-part-handle] {
434
514
  opacity: 0;
435
515
  translate: 0 var(--slotted-space-3, 0.375rem);
436
516
  }
@@ -438,7 +518,7 @@
438
518
 
439
519
  /* The pill is small to the eye and not to the hand: the hit area reaches
440
520
  the target floor on both axes. */
441
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-part='handle']::before {
521
+ [data-ui-dashboard-grid] [data-part-widget] > [data-part-handle]::before {
442
522
  content: '';
443
523
  inset: calc((var(--slotted-target-min, 24px) - var(--_pill-block)) / -2)
444
524
  calc(var(--slotted-space-4, 0.5rem) * -1);
@@ -446,28 +526,28 @@
446
526
  }
447
527
 
448
528
  /* The grip is an `icon` the binding draws; the pill gives it its size. */
449
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-part='handle'] > [data-ui='icon'] {
529
+ [data-ui-dashboard-grid] [data-part-widget] > [data-part-handle] > [data-ui-icon] {
450
530
  --slotted-icon-size: var(--slotted-dashboard-grid-handle-glyph-size, 0.875rem);
451
531
  }
452
532
 
453
- [data-ui='dashboard-grid'][data-editing]
454
- [data-part='widget']:not([data-loading]):hover
455
- > [data-part='handle'] {
533
+ [data-ui-dashboard-grid][data-editing]
534
+ [data-part-widget]:not([data-loading]):hover
535
+ > [data-part-handle] {
456
536
  border-color: var(--slotted-border-strong, ButtonBorder);
457
537
  color: var(--slotted-text, CanvasText);
458
538
  }
459
539
 
460
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-part='handle']:focus-visible {
540
+ [data-ui-dashboard-grid] [data-part-widget] > [data-part-handle]:focus-visible {
461
541
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
462
542
  outline-offset: var(--slotted-focus-ring-offset, 2px);
463
543
  }
464
544
 
465
545
  /* Carried, or its menu open: the pill takes the accent, the one mark on the
466
546
  page that says which widget the reader has in hand. */
467
- [data-ui='dashboard-grid']
468
- [data-part='widget']:is([data-dragging], [data-resizing])
469
- > [data-part='handle'],
470
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-part='handle'][aria-expanded='true'] {
547
+ [data-ui-dashboard-grid]
548
+ [data-part-widget]:is([data-dragging], [data-resizing])
549
+ > [data-part-handle],
550
+ [data-ui-dashboard-grid] [data-part-widget] > [data-part-handle][aria-expanded='true'] {
471
551
  background-color: var(--_accent);
472
552
  border-color: var(--_accent);
473
553
  color: var(--slotted-tone-accent-on-solid, HighlightText);
@@ -482,7 +562,7 @@
482
562
  * are quiet until the widget is under the pointer, and always shown to a
483
563
  * finger, which has no hover.
484
564
  */
485
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-part='resize-handle'] {
565
+ [data-ui-dashboard-grid] [data-part-widget] > [data-part-resize-handle] {
486
566
  --_hit: var(--slotted-dashboard-grid-resize-hit, 0.75rem);
487
567
  --_mark: var(--slotted-border-strong, currentColor);
488
568
 
@@ -493,30 +573,30 @@
493
573
  z-index: 2;
494
574
  }
495
575
 
496
- [data-ui='dashboard-grid'][data-editing]
497
- [data-part='widget']:not([data-loading]):hover
498
- > [data-part='resize-handle'],
499
- [data-ui='dashboard-grid'][data-editing]
500
- [data-part='widget']:focus-within
501
- > [data-part='resize-handle'],
502
- [data-ui='dashboard-grid'] [data-part='widget'][data-resizing] > [data-part='resize-handle'] {
576
+ [data-ui-dashboard-grid][data-editing]
577
+ [data-part-widget]:not([data-loading]):hover
578
+ > [data-part-resize-handle],
579
+ [data-ui-dashboard-grid][data-editing]
580
+ [data-part-widget]:focus-within
581
+ > [data-part-resize-handle],
582
+ [data-ui-dashboard-grid] [data-part-widget][data-resizing] > [data-part-resize-handle] {
503
583
  opacity: 1;
504
584
  }
505
585
 
506
586
  @media (pointer: coarse) {
507
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-part='resize-handle'] {
587
+ [data-ui-dashboard-grid] [data-part-widget] > [data-part-resize-handle] {
508
588
  --_hit: var(--slotted-target-comfortable, 44px);
509
589
 
510
590
  opacity: 1;
511
591
  }
512
592
 
513
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-part='handle'] {
593
+ [data-ui-dashboard-grid] [data-part-widget] > [data-part-handle] {
514
594
  --_pill-inline: var(--slotted-dashboard-grid-handle-inline-size-coarse, 2.75rem);
515
595
  --_pill-block: var(--slotted-dashboard-grid-handle-block-size-coarse, 1.25rem);
516
596
  }
517
597
  }
518
598
 
519
- [data-ui='dashboard-grid'] [data-part='resize-handle']::before {
599
+ [data-ui-dashboard-grid] [data-part-resize-handle]::before {
520
600
  background-color: var(--_mark);
521
601
  border-radius: var(--slotted-radius-full, 9999px);
522
602
  content: '';
@@ -529,68 +609,67 @@
529
609
  inline-size var(--slotted-duration-short) var(--slotted-easing-standard);
530
610
  }
531
611
 
532
- [data-ui='dashboard-grid']
533
- [data-part='resize-handle']:is([data-edge='start'], [data-edge='end']) {
612
+ [data-ui-dashboard-grid] [data-part-resize-handle]:is([data-edge='start'], [data-edge='end']) {
534
613
  cursor: ew-resize;
535
614
  inline-size: var(--_hit);
536
615
  inset-block: calc(var(--_radius) + var(--_hit) / 2);
537
616
  }
538
617
 
539
- [data-ui='dashboard-grid'] [data-part='resize-handle'][data-edge='start'] {
618
+ [data-ui-dashboard-grid] [data-part-resize-handle][data-edge='start'] {
540
619
  inset-inline-start: calc(var(--_hit) / -2);
541
620
  }
542
621
 
543
- [data-ui='dashboard-grid'] [data-part='resize-handle'][data-edge='end'] {
622
+ [data-ui-dashboard-grid] [data-part-resize-handle][data-edge='end'] {
544
623
  inset-inline-end: calc(var(--_hit) / -2);
545
624
  }
546
625
 
547
- [data-ui='dashboard-grid']
548
- [data-part='resize-handle']:is([data-edge='start'], [data-edge='end'])::before {
626
+ [data-ui-dashboard-grid]
627
+ [data-part-resize-handle]:is([data-edge='start'], [data-edge='end'])::before {
549
628
  block-size: var(--slotted-dashboard-grid-resize-pill, 1.75rem);
550
629
  inline-size: var(--slotted-border-width-thick, 3px);
551
630
  }
552
631
 
553
- [data-ui='dashboard-grid'] [data-part='resize-handle'][data-edge='bottom'] {
632
+ [data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom'] {
554
633
  block-size: var(--_hit);
555
634
  cursor: ns-resize;
556
635
  inset-block-end: calc(var(--_hit) / -2);
557
636
  inset-inline: calc(var(--_radius) + var(--_hit) / 2);
558
637
  }
559
638
 
560
- [data-ui='dashboard-grid'] [data-part='resize-handle'][data-edge='bottom']::before {
639
+ [data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom']::before {
561
640
  block-size: var(--slotted-border-width-thick, 3px);
562
641
  inline-size: var(--slotted-dashboard-grid-resize-pill, 1.75rem);
563
642
  }
564
643
 
565
- [data-ui='dashboard-grid']
566
- [data-part='resize-handle']:is([data-edge='bottom-start'], [data-edge='bottom-end']) {
644
+ [data-ui-dashboard-grid]
645
+ [data-part-resize-handle]:is([data-edge='bottom-start'], [data-edge='bottom-end']) {
567
646
  block-size: calc(var(--_hit) * 1.5);
568
647
  inline-size: calc(var(--_hit) * 1.5);
569
648
  inset-block-end: calc(var(--_hit) / -2);
570
649
  }
571
650
 
572
- [data-ui='dashboard-grid'] [data-part='resize-handle'][data-edge='bottom-end'] {
651
+ [data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom-end'] {
573
652
  cursor: nwse-resize;
574
653
  inset-inline-end: calc(var(--_hit) / -2);
575
654
  }
576
655
 
577
- [data-ui='dashboard-grid'] [data-part='resize-handle'][data-edge='bottom-start'] {
656
+ [data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom-start'] {
578
657
  cursor: nesw-resize;
579
658
  inset-inline-start: calc(var(--_hit) / -2);
580
659
  }
581
660
 
582
- [data-ui='dashboard-grid'] [data-part='resize-handle'][data-edge='bottom-end']:dir(rtl) {
661
+ [data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom-end']:dir(rtl) {
583
662
  cursor: nesw-resize;
584
663
  }
585
664
 
586
- [data-ui='dashboard-grid'] [data-part='resize-handle'][data-edge='bottom-start']:dir(rtl) {
665
+ [data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom-start']:dir(rtl) {
587
666
  cursor: nwse-resize;
588
667
  }
589
668
 
590
669
  /* The corner mark is an arc on the card's own corner: a quarter of a ring
591
670
  whose radius is the card's, drawn over the card's edge. */
592
- [data-ui='dashboard-grid']
593
- [data-part='resize-handle']:is([data-edge='bottom-start'], [data-edge='bottom-end'])::before {
671
+ [data-ui-dashboard-grid]
672
+ [data-part-resize-handle]:is([data-edge='bottom-start'], [data-edge='bottom-end'])::before {
594
673
  background-color: transparent;
595
674
  block-size: var(--_radius);
596
675
  border-block-end: var(--slotted-border-width-thick, 3px) solid var(--_mark);
@@ -601,13 +680,13 @@
601
680
  margin: 0;
602
681
  }
603
682
 
604
- [data-ui='dashboard-grid'] [data-part='resize-handle'][data-edge='bottom-end']::before {
683
+ [data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom-end']::before {
605
684
  border-end-end-radius: var(--_radius);
606
685
  border-inline-end: var(--slotted-border-width-thick, 3px) solid var(--_mark);
607
686
  inset-inline-end: calc(var(--_hit) / 2 - var(--slotted-border-width-thin, 1px));
608
687
  }
609
688
 
610
- [data-ui='dashboard-grid'] [data-part='resize-handle'][data-edge='bottom-start']::before {
689
+ [data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom-start']::before {
611
690
  border-end-start-radius: var(--_radius);
612
691
  border-inline-start: var(--slotted-border-width-thick, 3px) solid var(--_mark);
613
692
  inset-inline-start: calc(var(--_hit) / 2 - var(--slotted-border-width-thin, 1px));
@@ -615,21 +694,21 @@
615
694
 
616
695
  /* Under the pointer, and while it is pulled, the mark takes the accent and
617
696
  the edge pill grows, so the reader sees which side answers. */
618
- [data-ui='dashboard-grid'] [data-part='resize-handle']:not([data-disabled]):hover,
619
- [data-ui='dashboard-grid'] [data-part='resize-handle'][data-active] {
697
+ [data-ui-dashboard-grid] [data-part-resize-handle]:not([data-disabled]):hover,
698
+ [data-ui-dashboard-grid] [data-part-resize-handle][data-active] {
620
699
  --_mark: var(--_accent);
621
700
  }
622
701
 
623
- [data-ui='dashboard-grid']
624
- [data-part='resize-handle']:is([data-edge='start'], [data-edge='end']):is(
702
+ [data-ui-dashboard-grid]
703
+ [data-part-resize-handle]:is([data-edge='start'], [data-edge='end']):is(
625
704
  :not([data-disabled]):hover,
626
705
  [data-active]
627
706
  )::before {
628
707
  block-size: var(--slotted-dashboard-grid-resize-pill-active, 2.75rem);
629
708
  }
630
709
 
631
- [data-ui='dashboard-grid']
632
- [data-part='resize-handle'][data-edge='bottom']:is(
710
+ [data-ui-dashboard-grid]
711
+ [data-part-resize-handle][data-edge='bottom']:is(
633
712
  :not([data-disabled]):hover,
634
713
  [data-active]
635
714
  )::before {
@@ -639,21 +718,33 @@
639
718
  /* The medium class flows the widgets, so a widget's start is where the one
640
719
  before it ends: there is no start edge to pull. */
641
720
  @container dashboard-grid (width < 1024px) {
642
- [data-ui='dashboard-grid']
643
- [data-part='widget']
644
- > [data-part='resize-handle']:is([data-edge='start'], [data-edge='bottom-start']) {
721
+ [data-ui-dashboard-grid]:not([data-size-class])
722
+ [data-part-widget]
723
+ > [data-part-resize-handle]:is([data-edge='start'], [data-edge='bottom-start']) {
645
724
  display: none;
646
725
  }
647
726
  }
648
727
 
728
+ [data-ui-dashboard-grid]:is([data-size-class='medium'], [data-size-class='compact'])
729
+ [data-part-widget]
730
+ > [data-part-resize-handle]:is([data-edge='start'], [data-edge='bottom-start']) {
731
+ display: none;
732
+ }
733
+
649
734
  /* A phone reads a dashboard as one column as tall as its content: there is
650
735
  no size to pull, only an order to change. */
651
736
  @container dashboard-grid (width < 600px) {
652
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-part='resize-handle'] {
737
+ [data-ui-dashboard-grid]:not([data-size-class]) [data-part-widget] > [data-part-resize-handle] {
653
738
  display: none;
654
739
  }
655
740
  }
656
741
 
742
+ [data-ui-dashboard-grid][data-size-class='compact']
743
+ [data-part-widget]
744
+ > [data-part-resize-handle] {
745
+ display: none;
746
+ }
747
+
657
748
  /* ── Editing: a widget in hand ───────────────────────────────────────── */
658
749
 
659
750
  /**
@@ -665,7 +756,7 @@
665
756
  * would land in is the placeholder, and the widgets around it make room as
666
757
  * the placeholder moves.
667
758
  */
668
- [data-ui='dashboard-grid'] [data-part='widget']:is([data-dragging], [data-resizing]) {
759
+ [data-ui-dashboard-grid] [data-part-widget]:is([data-dragging], [data-resizing]) {
669
760
  grid-column: auto;
670
761
  grid-row: auto;
671
762
  position: absolute;
@@ -674,14 +765,14 @@
674
765
 
675
766
  /* Picked up: lifted by the largest shadow on the scale. It is not scaled —
676
767
  a card of text grown by two per cent is two per cent blurred (R7). */
677
- [data-ui='dashboard-grid'] [data-part='widget'][data-dragging] {
768
+ [data-ui-dashboard-grid] [data-part-widget][data-dragging] {
678
769
  cursor: grabbing;
679
770
  }
680
771
 
681
772
  /* A shadow is dark on a dark page, so the widget in hand also takes a
682
773
  hairline of the accent: in the dark scheme it is what lifts the card, and
683
774
  in the light one it says which card is held. */
684
- [data-ui='dashboard-grid'] [data-part='widget'][data-dragging] > [data-ui='card'] {
775
+ [data-ui-dashboard-grid] [data-part-widget][data-dragging] > [data-ui-card] {
685
776
  box-shadow:
686
777
  var(--slotted-shadow-lg),
687
778
  0 0 0 var(--slotted-border-width-thin, 1px)
@@ -689,7 +780,7 @@
689
780
  }
690
781
 
691
782
  /* Pulled: the card follows the pointer at any size, lifted a step less. */
692
- [data-ui='dashboard-grid'] [data-part='widget'][data-resizing] > [data-ui='card'] {
783
+ [data-ui-dashboard-grid] [data-part-widget][data-resizing] > [data-ui-card] {
693
784
  box-shadow:
694
785
  var(--slotted-shadow-md),
695
786
  0 0 0 var(--slotted-border-width-thin, 1px)
@@ -702,7 +793,7 @@
702
793
  * No dashes and no fill that competes with the widget over it — it is a
703
794
  * shape the reader aims at, not a second object.
704
795
  */
705
- [data-ui='dashboard-grid'] > [data-part='grid'] > [data-part='placeholder'] {
796
+ [data-ui-dashboard-grid] > [data-part-grid] > [data-part-placeholder] {
706
797
  background-color: color-mix(in oklab, var(--_accent) 10%, transparent);
707
798
  border: var(--slotted-border-width-thin, 1px) solid
708
799
  color-mix(in oklab, var(--_accent) 55%, transparent);
@@ -716,7 +807,7 @@
716
807
  * corner the reader is pulling: the only text on screen during the gesture,
717
808
  * where the eye already is.
718
809
  */
719
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-part='size-readout'] {
810
+ [data-ui-dashboard-grid] [data-part-widget] > [data-part-size-readout] {
720
811
  background-color: var(--_accent);
721
812
  border-radius: var(--slotted-radius-full, 9999px);
722
813
  box-shadow: var(--slotted-shadow-sm);
@@ -735,15 +826,13 @@
735
826
  z-index: 4;
736
827
  }
737
828
 
738
- [data-ui='dashboard-grid'] [data-part='widget'] > [data-part='size-readout'][data-edge='start'],
739
- [data-ui='dashboard-grid']
740
- [data-part='widget']
741
- > [data-part='size-readout'][data-edge='bottom-start'] {
829
+ [data-ui-dashboard-grid] [data-part-widget] > [data-part-size-readout][data-edge='start'],
830
+ [data-ui-dashboard-grid] [data-part-widget] > [data-part-size-readout][data-edge='bottom-start'] {
742
831
  inset-inline: var(--slotted-space-5, 0.75rem) auto;
743
832
  }
744
833
 
745
834
  /* A grid with nothing visible. */
746
- [data-ui='dashboard-grid'] > [data-part='empty'] {
835
+ [data-ui-dashboard-grid] > [data-part-empty] {
747
836
  min-block-size: calc(var(--_row) * 2 + var(--_gap));
748
837
  }
749
838
  }