@slotted/styles 0.1.0-beta.27 → 0.1.0-beta.29

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 (35) hide show
  1. package/package.json +3 -1
  2. package/src/attachment/attachment.css +13 -1
  3. package/src/command-palette/command-palette.css +36 -0
  4. package/src/command-palette/command-palette.tokens.json +1 -0
  5. package/src/date-picker/date-picker.css +41 -0
  6. package/src/date-picker/date-picker.tokens.json +4 -0
  7. package/src/date-range-picker/date-range-picker.css +33 -0
  8. package/src/date-range-picker/date-range-picker.tokens.json +4 -0
  9. package/src/datetime-picker/datetime-picker.css +42 -0
  10. package/src/datetime-picker/datetime-picker.tokens.json +4 -0
  11. package/src/datetime-range-picker/datetime-range-picker.css +33 -0
  12. package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
  13. package/src/description-list/description-list.css +23 -8
  14. package/src/description-list/description-list.tokens.json +1 -0
  15. package/src/dialog/dialog.css +59 -45
  16. package/src/drawer/drawer.css +27 -2
  17. package/src/drawer/drawer.tokens.json +2 -0
  18. package/src/entity-picker/entity-picker.css +36 -0
  19. package/src/entity-picker/entity-picker.tokens.json +1 -0
  20. package/src/field/field.css +3 -1
  21. package/src/field-group/field-group.css +20 -6
  22. package/src/field-group/field-group.tokens.json +3 -0
  23. package/src/media-viewer/media-viewer.css +790 -0
  24. package/src/media-viewer/media-viewer.tokens.json +53 -0
  25. package/src/message/message.css +1255 -1248
  26. package/src/message-scroller/message-scroller.css +322 -318
  27. package/src/runtime-properties.mjs +11 -0
  28. package/src/stat-card/stat-card.css +33 -0
  29. package/src/stat-card/stat-card.tokens.json +4 -0
  30. package/src/tag/tag.css +5 -4
  31. package/src/tag/tag.tokens.json +1 -0
  32. package/src/time-picker/time-picker.css +41 -0
  33. package/src/time-picker/time-picker.tokens.json +4 -0
  34. package/src/time-range-picker/time-range-picker.css +33 -0
  35. package/src/time-range-picker/time-range-picker.tokens.json +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slotted/styles",
3
- "version": "0.1.0-beta.27",
3
+ "version": "0.1.0-beta.29",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -149,6 +149,8 @@
149
149
  "./loading-overlay/tokens.json": "./src/loading-overlay/loading-overlay.tokens.json",
150
150
  "./markdown/markdown.css": "./src/markdown/markdown.css",
151
151
  "./markdown/tokens.json": "./src/markdown/markdown.tokens.json",
152
+ "./media-viewer/media-viewer.css": "./src/media-viewer/media-viewer.css",
153
+ "./media-viewer/tokens.json": "./src/media-viewer/media-viewer.tokens.json",
152
154
  "./menu/menu.css": "./src/menu/menu.css",
153
155
  "./menu/tokens.json": "./src/menu/menu.tokens.json",
154
156
  "./menubar/menubar.css": "./src/menubar/menubar.css",
@@ -332,7 +332,6 @@
332
332
  padding: 0;
333
333
  text-align: start;
334
334
  text-decoration: none;
335
- transition: translate var(--slotted-duration-instant) var(--slotted-control-transition-easing);
336
335
  }
337
336
 
338
337
  /**
@@ -360,6 +359,19 @@
360
359
  [data-ui-attachment] [data-part-trigger]:not(:disabled):not([aria-disabled='true']):active {
361
360
  text-decoration-line: underline;
362
361
  text-underline-offset: 0.2em;
362
+ }
363
+
364
+ /*
365
+ * The settle moves what the trigger holds, never the trigger: a `translate`
366
+ * on the trigger makes it the containing block of its `::after`, and for
367
+ * the press the target shrank to the name, so a release on the preview
368
+ * clicked the root instead.
369
+ */
370
+ [data-ui-attachment] [data-part-trigger] > * {
371
+ transition: translate var(--slotted-duration-instant) var(--slotted-control-transition-easing);
372
+ }
373
+
374
+ [data-ui-attachment] [data-part-trigger]:not(:disabled):not([aria-disabled='true']):active > * {
363
375
  translate: 0 var(--slotted-border-width-thin, 1px);
364
376
  }
365
377
 
@@ -551,14 +551,50 @@
551
551
  grid-template-columns: subgrid;
552
552
  }
553
553
 
554
+ /**
555
+ * A group's label stays at the top of the list while its group is in view.
556
+ * The group is the label's containing block, so the next label pushes it out
557
+ * and a group scrolled past takes its label with it. It sticks to the
558
+ * scrollport's edge rather than the padding's, on the surface's ground, above
559
+ * the items and below the parts the surface draws over them.
560
+ */
554
561
  [data-ui-command-palette] [data-part-group-label] {
562
+ background: var(--_surface);
563
+ box-sizing: border-box;
555
564
  color: var(--_muted);
556
565
  font-size: var(--_secondary-font-size);
557
566
  font-weight: var(--slotted-font-weight-semibold, 600);
558
567
  grid-column: 1 / -1;
568
+ inset-block-start: calc(-1 * var(--_list-inset));
559
569
  line-height: var(--slotted-line-height-sm, 1.45);
570
+ min-block-size: var(--_group-label-height);
560
571
  padding-block: var(--slotted-space-2, 0.25rem);
561
572
  padding-inline: var(--_item-inset);
573
+ position: sticky;
574
+ z-index: 1;
575
+ }
576
+
577
+ @media (forced-colors: active) {
578
+ [data-ui-command-palette] [data-part-group-label] {
579
+ background: Canvas;
580
+ }
581
+ }
582
+
583
+ /**
584
+ * The label's height, which the list keeps clear above an item the keys
585
+ * bring into view (`revealWithin` reads the scroll padding), so the item is
586
+ * never drawn under a label stuck to the top.
587
+ */
588
+ [data-ui-command-palette] > [data-part-list]:has([data-part-group-label]) {
589
+ --_group-label-height: var(
590
+ --slotted-command-palette-group-label-height,
591
+ calc(
592
+ var(--_secondary-font-size) * var(--slotted-line-height-sm, 1.45) + 2 *
593
+ var(--slotted-space-2, 0.25rem)
594
+ )
595
+ );
596
+
597
+ scroll-padding-block-start: var(--_group-label-height);
562
598
  }
563
599
 
564
600
  /* ── Items ────────────────────────────────────────────────────────────── */
@@ -5,6 +5,7 @@
5
5
  "--slotted-command-palette-backdrop-filter",
6
6
  "--slotted-command-palette-border-color",
7
7
  "--slotted-command-palette-footer-surface",
8
+ "--slotted-command-palette-group-label-height",
8
9
  "--slotted-command-palette-highlight",
9
10
  "--slotted-command-palette-highlight-ring",
10
11
  "--slotted-command-palette-hover",
@@ -48,6 +48,15 @@
48
48
  position: relative;
49
49
  }
50
50
 
51
+ /**
52
+ * The `date-field` is the control's flex item, and its own basis is its
53
+ * content. It grows to the control, so the frame takes the width the field
54
+ * gave the root: the whole field at `full`, the step at `short` and `medium`.
55
+ */
56
+ [data-ui-date-picker] [data-part-control] > [data-ui-date-field] {
57
+ flex: 1 1 auto;
58
+ }
59
+
51
60
  [data-ui-date-picker][data-part-root][data-size='sm'] [data-part-control] {
52
61
  --_icon-size: var(--slotted-control-icon-size-sm, 14px);
53
62
  --_height: var(--slotted-control-height-sm, 30px);
@@ -434,5 +443,37 @@
434
443
  padding-block-end: var(--slotted-space-4, 0.5rem);
435
444
  padding-inline-end: 0;
436
445
  }
446
+
447
+ /**
448
+ * The grip every bottom sheet carries, in the drawer's geometry and line
449
+ * colour: a pill three rem by a quarter, centred in a row one target tall
450
+ * that the content keeps clear at its top. A pull down on it dismisses the
451
+ * sheet; Escape and the press outside stay the accessible ways out.
452
+ */
453
+ [data-ui-date-picker][data-part-positioner][data-presentation='sheet'] > [data-part-content] {
454
+ padding-block-start: var(--slotted-target-min, 24px);
455
+ position: relative;
456
+ }
457
+
458
+ [data-ui-date-picker][data-part-positioner][data-presentation='sheet']
459
+ > [data-part-content]
460
+ > [data-part-grip] {
461
+ background-clip: content-box;
462
+ background-color: var(
463
+ --slotted-drawer-resizer-line-color,
464
+ var(--slotted-border-strong, ButtonBorder)
465
+ );
466
+ block-size: var(--slotted-space-2, 0.25rem);
467
+ border-radius: var(--slotted-radius-full, 9999px);
468
+ box-sizing: content-box;
469
+ cursor: grab;
470
+ inline-size: var(--slotted-space-11, 3rem);
471
+ inset-block-start: 0;
472
+ inset-inline: 0;
473
+ margin-inline: auto;
474
+ padding-block: calc((var(--slotted-target-min, 24px) - var(--slotted-space-2, 0.25rem)) / 2);
475
+ position: absolute;
476
+ touch-action: none;
477
+ }
437
478
  }
438
479
  }
@@ -1,4 +1,5 @@
1
1
  [
2
+ "--slotted-border-strong",
2
3
  "--slotted-border-subtle",
3
4
  "--slotted-border-width-thin",
4
5
  "--slotted-control-border-width",
@@ -25,6 +26,7 @@
25
26
  "--slotted-date-picker-trigger-hover-background",
26
27
  "--slotted-date-picker-trigger-size",
27
28
  "--slotted-disabled-foreground",
29
+ "--slotted-drawer-resizer-line-color",
28
30
  "--slotted-duration-medium",
29
31
  "--slotted-duration-short",
30
32
  "--slotted-easing-enter",
@@ -33,8 +35,10 @@
33
35
  "--slotted-focus-ring-color-invalid",
34
36
  "--slotted-focus-ring-offset",
35
37
  "--slotted-focus-ring-width",
38
+ "--slotted-radius-full",
36
39
  "--slotted-radius-lg",
37
40
  "--slotted-shadow-md",
41
+ "--slotted-space-11",
38
42
  "--slotted-space-2",
39
43
  "--slotted-space-4",
40
44
  "--slotted-space-5",
@@ -947,6 +947,39 @@
947
947
  flex-direction: row;
948
948
  flex-wrap: wrap;
949
949
  }
950
+
951
+ /**
952
+ * The grip every bottom sheet carries, in the drawer's geometry and line
953
+ * colour: a pill three rem by a quarter, centred in a row one target tall
954
+ * that the content keeps clear at its top. A pull down on it dismisses the
955
+ * sheet; Escape and the press outside stay the accessible ways out.
956
+ */
957
+ [data-ui-date-range-picker][data-part-positioner][data-presentation='sheet']
958
+ > [data-part-content] {
959
+ padding-block-start: var(--slotted-target-min, 24px);
960
+ position: relative;
961
+ }
962
+
963
+ [data-ui-date-range-picker][data-part-positioner][data-presentation='sheet']
964
+ > [data-part-content]
965
+ > [data-part-grip] {
966
+ background-clip: content-box;
967
+ background-color: var(
968
+ --slotted-drawer-resizer-line-color,
969
+ var(--slotted-border-strong, ButtonBorder)
970
+ );
971
+ block-size: var(--slotted-space-2, 0.25rem);
972
+ border-radius: var(--slotted-radius-full, 9999px);
973
+ box-sizing: content-box;
974
+ cursor: grab;
975
+ inline-size: var(--slotted-space-11, 3rem);
976
+ inset-block-start: 0;
977
+ inset-inline: 0;
978
+ margin-inline: auto;
979
+ padding-block: calc((var(--slotted-target-min, 24px) - var(--slotted-space-2, 0.25rem)) / 2);
980
+ position: absolute;
981
+ touch-action: none;
982
+ }
950
983
  }
951
984
 
952
985
  @media (forced-colors: active) {
@@ -1,4 +1,5 @@
1
1
  [
2
+ "--slotted-border-strong",
2
3
  "--slotted-border-subtle",
3
4
  "--slotted-border-width-thin",
4
5
  "--slotted-control-border-color",
@@ -68,6 +69,7 @@
68
69
  "--slotted-disabled-background",
69
70
  "--slotted-disabled-border",
70
71
  "--slotted-disabled-foreground",
72
+ "--slotted-drawer-resizer-line-color",
71
73
  "--slotted-duration-medium",
72
74
  "--slotted-duration-short",
73
75
  "--slotted-easing-enter",
@@ -82,11 +84,13 @@
82
84
  "--slotted-font-weight-regular",
83
85
  "--slotted-font-weight-semibold",
84
86
  "--slotted-line-height-sm",
87
+ "--slotted-radius-full",
85
88
  "--slotted-radius-lg",
86
89
  "--slotted-radius-none",
87
90
  "--slotted-radius-xs",
88
91
  "--slotted-shadow-md",
89
92
  "--slotted-space-1",
93
+ "--slotted-space-11",
90
94
  "--slotted-space-2",
91
95
  "--slotted-space-3",
92
96
  "--slotted-space-4",
@@ -54,6 +54,15 @@
54
54
  position: relative;
55
55
  }
56
56
 
57
+ /**
58
+ * The `datetime-field` is the control's flex item, and its own basis is its
59
+ * content. It grows to the control, so the frame takes the width the field
60
+ * gave the root: the whole field at `full`, the step at `short` and `medium`.
61
+ */
62
+ [data-ui-datetime-picker] [data-part-control] > [data-ui-datetime-field] {
63
+ flex: 1 1 auto;
64
+ }
65
+
57
66
  [data-ui-datetime-picker][data-part-root][data-size='sm'] [data-part-control] {
58
67
  --_icon-size: var(--slotted-control-icon-size-sm, 14px);
59
68
  --_height: var(--slotted-control-height-sm, 30px);
@@ -828,6 +837,39 @@
828
837
  [data-ui-datetime-picker][data-part-positioner][data-presentation='sheet'] [data-part-list] {
829
838
  max-block-size: calc(var(--_row-pitch) * 5.5);
830
839
  }
840
+
841
+ /**
842
+ * The grip every bottom sheet carries, in the drawer's geometry and line
843
+ * colour: a pill three rem by a quarter, centred in a row one target tall
844
+ * that the content keeps clear at its top. A pull down on it dismisses the
845
+ * sheet; Escape and the press outside stay the accessible ways out.
846
+ */
847
+ [data-ui-datetime-picker][data-part-positioner][data-presentation='sheet']
848
+ > [data-part-content] {
849
+ padding-block-start: var(--slotted-target-min, 24px);
850
+ position: relative;
851
+ }
852
+
853
+ [data-ui-datetime-picker][data-part-positioner][data-presentation='sheet']
854
+ > [data-part-content]
855
+ > [data-part-grip] {
856
+ background-clip: content-box;
857
+ background-color: var(
858
+ --slotted-drawer-resizer-line-color,
859
+ var(--slotted-border-strong, ButtonBorder)
860
+ );
861
+ block-size: var(--slotted-space-2, 0.25rem);
862
+ border-radius: var(--slotted-radius-full, 9999px);
863
+ box-sizing: content-box;
864
+ cursor: grab;
865
+ inline-size: var(--slotted-space-11, 3rem);
866
+ inset-block-start: 0;
867
+ inset-inline: 0;
868
+ margin-inline: auto;
869
+ padding-block: calc((var(--slotted-target-min, 24px) - var(--slotted-space-2, 0.25rem)) / 2);
870
+ position: absolute;
871
+ touch-action: none;
872
+ }
831
873
  }
832
874
 
833
875
  @media (forced-colors: active) {
@@ -1,4 +1,5 @@
1
1
  [
2
+ "--slotted-border-strong",
2
3
  "--slotted-border-subtle",
3
4
  "--slotted-border-width-thin",
4
5
  "--slotted-control-border-color",
@@ -44,6 +45,7 @@
44
45
  "--slotted-datetime-picker-trigger-hover-background",
45
46
  "--slotted-datetime-picker-trigger-size",
46
47
  "--slotted-disabled-foreground",
48
+ "--slotted-drawer-resizer-line-color",
47
49
  "--slotted-duration-medium",
48
50
  "--slotted-duration-short",
49
51
  "--slotted-easing-enter",
@@ -54,9 +56,11 @@
54
56
  "--slotted-focus-ring-width",
55
57
  "--slotted-font-size-sm",
56
58
  "--slotted-font-weight-medium",
59
+ "--slotted-radius-full",
57
60
  "--slotted-radius-lg",
58
61
  "--slotted-shadow-md",
59
62
  "--slotted-space-1",
63
+ "--slotted-space-11",
60
64
  "--slotted-space-2",
61
65
  "--slotted-space-3",
62
66
  "--slotted-space-4",
@@ -1338,6 +1338,39 @@
1338
1338
  var(--slotted-target-comfortable, 44px)
1339
1339
  );
1340
1340
  }
1341
+
1342
+ /**
1343
+ * The grip every bottom sheet carries, in the drawer's geometry and line
1344
+ * colour: a pill three rem by a quarter, centred in a row one target tall
1345
+ * that the content keeps clear at its top. A pull down on it dismisses the
1346
+ * sheet; Escape and the press outside stay the accessible ways out.
1347
+ */
1348
+ [data-ui-datetime-range-picker][data-part-positioner][data-presentation='sheet']
1349
+ > [data-part-content] {
1350
+ padding-block-start: var(--slotted-target-min, 24px);
1351
+ position: relative;
1352
+ }
1353
+
1354
+ [data-ui-datetime-range-picker][data-part-positioner][data-presentation='sheet']
1355
+ > [data-part-content]
1356
+ > [data-part-grip] {
1357
+ background-clip: content-box;
1358
+ background-color: var(
1359
+ --slotted-drawer-resizer-line-color,
1360
+ var(--slotted-border-strong, ButtonBorder)
1361
+ );
1362
+ block-size: var(--slotted-space-2, 0.25rem);
1363
+ border-radius: var(--slotted-radius-full, 9999px);
1364
+ box-sizing: content-box;
1365
+ cursor: grab;
1366
+ inline-size: var(--slotted-space-11, 3rem);
1367
+ inset-block-start: 0;
1368
+ inset-inline: 0;
1369
+ margin-inline: auto;
1370
+ padding-block: calc((var(--slotted-target-min, 24px) - var(--slotted-space-2, 0.25rem)) / 2);
1371
+ position: absolute;
1372
+ touch-action: none;
1373
+ }
1341
1374
  }
1342
1375
 
1343
1376
  @media (forced-colors: active) {
@@ -1,4 +1,5 @@
1
1
  [
2
+ "--slotted-border-strong",
2
3
  "--slotted-border-subtle",
3
4
  "--slotted-border-width-thin",
4
5
  "--slotted-control-border-color",
@@ -86,6 +87,7 @@
86
87
  "--slotted-disabled-background",
87
88
  "--slotted-disabled-border",
88
89
  "--slotted-disabled-foreground",
90
+ "--slotted-drawer-resizer-line-color",
89
91
  "--slotted-duration-medium",
90
92
  "--slotted-duration-short",
91
93
  "--slotted-easing-enter",
@@ -101,6 +103,7 @@
101
103
  "--slotted-font-weight-semibold",
102
104
  "--slotted-letter-spacing-wide",
103
105
  "--slotted-line-height-sm",
106
+ "--slotted-radius-full",
104
107
  "--slotted-radius-lg",
105
108
  "--slotted-radius-none",
106
109
  "--slotted-radius-pill",
@@ -108,6 +111,7 @@
108
111
  "--slotted-radius-xs",
109
112
  "--slotted-shadow-md",
110
113
  "--slotted-space-1",
114
+ "--slotted-space-11",
111
115
  "--slotted-space-2",
112
116
  "--slotted-space-3",
113
117
  "--slotted-space-4",
@@ -25,6 +25,18 @@
25
25
  container-name: slotted-description-list;
26
26
  container-type: inline-size;
27
27
  display: block;
28
+ /**
29
+ * The width under which a row of a term and its value gives up, carried as
30
+ * the root's font size. A container condition cannot read a custom
31
+ * property, but it resolves `em` against the container's own font size, so
32
+ * `(max-width: 1em)` folds the row when the term track and the narrowest
33
+ * value no longer fit side by side. The list states its own font size, so
34
+ * no text is set in this one.
35
+ */
36
+ font-size: calc(
37
+ var(--slotted-description-list-term-width, 14rem) +
38
+ var(--slotted-description-list-value-min, 12rem)
39
+ );
28
40
  }
29
41
 
30
42
  [data-ui-description-list] [data-part-list] {
@@ -586,10 +598,11 @@
586
598
  * column goes first and the single-column row form gets the whole width
587
599
  * before it gives up on the row.
588
600
  *
589
- * The breakpoints are literals because a container condition cannot read a
590
- * custom property, which rule 4 of `docs/token-foundation.md` states. That is
591
- * why `data-min-column-width` is a step and not a length: `md` folds at
592
- * sixteen and seventeen rem a column, `sm` at twelve and a half.
601
+ * The count breakpoints are literals because a container condition cannot
602
+ * read a custom property, which rule 4 of `docs/token-foundation.md` states.
603
+ * That is why `data-min-column-width` is a step and not a length: `md` folds
604
+ * at sixteen and seventeen rem a column, `sm` at twelve and a half. The row
605
+ * fold reads the term width through the root's font size instead.
593
606
  */
594
607
  /**
595
608
  * A span is stated in tracks, so it collapses with the count that produced
@@ -629,15 +642,17 @@
629
642
  --_span-2: var(--_span-1);
630
643
  --_span-3: var(--_span-1);
631
644
  }
645
+ }
632
646
 
647
+ @container slotted-description-list (max-width: calc(1em + 8rem)) {
633
648
  /**
634
649
  * A list whose terms carry hints gives up the row eight rem earlier than
635
650
  * one whose terms do not. A hint is a sentence under a label, and a label
636
651
  * column wide enough to hold one leaves a four-hundred-pixel panel with a
637
652
  * value column narrower than the label — which is the arrangement inverted
638
- * rather than compressed. The declarations are the ones below, at
639
- * twenty-six rem, and they are written twice because two container
640
- * conditions cannot share one rule.
653
+ * rather than compressed. The declarations are the ones below, at the
654
+ * row fold, and they are written twice because two container conditions
655
+ * cannot share one rule.
641
656
  */
642
657
  [data-ui-description-list][data-layout='row'] [data-part-list]:has([data-part-hint]) {
643
658
  --_pair: minmax(0, 1fr);
@@ -664,7 +679,7 @@
664
679
  }
665
680
  }
666
681
 
667
- @container slotted-description-list (max-width: 26rem) {
682
+ @container slotted-description-list (max-width: 1em) {
668
683
  [data-ui-description-list][data-layout='row'] [data-part-list] {
669
684
  --_pair: minmax(0, 1fr);
670
685
  --_term-floor: 0px;
@@ -39,6 +39,7 @@
39
39
  "--slotted-description-list-term-width",
40
40
  "--slotted-description-list-toggle-color",
41
41
  "--slotted-description-list-underline-offset",
42
+ "--slotted-description-list-value-min",
42
43
  "--slotted-focus-ring-color",
43
44
  "--slotted-focus-ring-offset",
44
45
  "--slotted-focus-ring-width",
@@ -574,10 +574,12 @@
574
574
  /* ── The words ────────────────────────────────────────────────────────── */
575
575
 
576
576
  /**
577
- * `overflow-wrap: anywhere` and a zero minimum are the pair that answer a
578
- * hostile string. A ninety-character unbroken token in a title widens the
579
- * panel past the layer, and the panel is centred, so both of its edges leave
580
- * the screen at once.
577
+ * The header places the title and the description; their type is theirs
578
+ * wherever they sit in the panel. A plain panel puts them in a bar of its
579
+ * own, and matched only as the header's children they kept the user agent's
580
+ * heading size and margins there. The scope ends at another family's root,
581
+ * so a card's title inside the body keeps the card's type; a title or a
582
+ * description drawn by another family's element stays the dialog's.
581
583
  */
582
584
  [data-ui-dialog]
583
585
  > [data-part-viewport]
@@ -592,20 +594,6 @@
592
594
  > [data-part-title] {
593
595
  grid-column: 2;
594
596
  grid-row: 1;
595
- margin: 0;
596
- min-inline-size: 0;
597
- overflow-wrap: anywhere;
598
- font-family: var(
599
- --slotted-dialog-title-font-family,
600
- var(
601
- --slotted-font-family-heading,
602
- var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif)
603
- )
604
- );
605
- font-size: var(--_title-font-size);
606
- font-weight: var(--slotted-font-weight-semibold, 600);
607
- line-height: var(--_title-line-height);
608
- color: var(--slotted-dialog-title-color, var(--slotted-text, CanvasText));
609
597
  }
610
598
 
611
599
  [data-ui-dialog]
@@ -621,37 +609,56 @@
621
609
  > [data-part-description] {
622
610
  grid-column: 2;
623
611
  grid-row: 2;
624
- margin: 0;
625
- min-inline-size: 0;
626
- overflow-wrap: anywhere;
627
- font-size: var(--_description-font-size);
628
- line-height: var(--slotted-line-height-md, 1.5);
629
- color: var(--slotted-dialog-description-color, var(--slotted-text-muted, GrayText));
630
612
  }
631
613
 
632
614
  /**
633
- * The name of the thing the dialog acts on. A confirmation says which
634
- * project or which member it removes, and a consumer marks that name with
635
- * `strong`; left to the user agent it was bold in the muted colour, heavier
636
- * than the title and no easier to find. It takes the title's colour and
637
- * weight instead, which is what both product confirmations in the survey do
638
- * with a span of their own.
615
+ * `overflow-wrap: anywhere` and a zero minimum are the pair that answer a
616
+ * hostile string. A ninety-character unbroken token in a title widens the
617
+ * panel past the layer, and the panel is centred, so both of its edges leave
618
+ * the screen at once.
639
619
  */
640
- [data-ui-dialog]
641
- > [data-part-viewport]
642
- > [data-part-content]
643
- > form
644
- > [data-part-header]
645
- > [data-part-description]
646
- :is(strong, b),
647
- [data-ui-dialog]
648
- > [data-part-viewport]
649
- > [data-part-content]
650
- > [data-part-header]
651
- > [data-part-description]
652
- :is(strong, b) {
653
- font-weight: var(--slotted-font-weight-semibold, 600);
654
- color: var(--slotted-dialog-title-color, var(--slotted-text, CanvasText));
620
+ @scope ([data-ui-dialog] > [data-part-viewport] > [data-part-content]) to ([data-ui]:not(
621
+ [data-part-title],
622
+ [data-part-description]
623
+ )) {
624
+ :scope [data-part-title] {
625
+ margin: 0;
626
+ min-inline-size: 0;
627
+ overflow-wrap: anywhere;
628
+ font-family: var(
629
+ --slotted-dialog-title-font-family,
630
+ var(
631
+ --slotted-font-family-heading,
632
+ var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif)
633
+ )
634
+ );
635
+ font-size: var(--_title-font-size);
636
+ font-weight: var(--slotted-font-weight-semibold, 600);
637
+ line-height: var(--_title-line-height);
638
+ color: var(--slotted-dialog-title-color, var(--slotted-text, CanvasText));
639
+ }
640
+
641
+ :scope [data-part-description] {
642
+ margin: 0;
643
+ min-inline-size: 0;
644
+ overflow-wrap: anywhere;
645
+ font-size: var(--_description-font-size);
646
+ line-height: var(--slotted-line-height-md, 1.5);
647
+ color: var(--slotted-dialog-description-color, var(--slotted-text-muted, GrayText));
648
+ }
649
+
650
+ /**
651
+ * The name of the thing the dialog acts on. A confirmation says which
652
+ * project or which member it removes, and a consumer marks that name with
653
+ * `strong`; left to the user agent it was bold in the muted colour, heavier
654
+ * than the title and no easier to find. It takes the title's colour and
655
+ * weight instead, which is what both product confirmations in the survey do
656
+ * with a span of their own.
657
+ */
658
+ :scope [data-part-description] :is(strong, b) {
659
+ font-weight: var(--slotted-font-weight-semibold, 600);
660
+ color: var(--slotted-dialog-title-color, var(--slotted-text, CanvasText));
661
+ }
655
662
  }
656
663
 
657
664
  /* ── The close button ─────────────────────────────────────────────────── */
@@ -1155,9 +1162,16 @@
1155
1162
  * owns both — a panel that animated its own box would animate `inset`,
1156
1163
  * `inline-size` and `block-size`, which is the rule R7 exists to state.
1157
1164
  */
1165
+ /*
1166
+ * The row is the layer's height, not the content's. An `auto` row grew with
1167
+ * a plain panel's content, so a viewer whose zoomed picture was taller than
1168
+ * the window took the layer past the window with it, and the layer changed
1169
+ * size at every step of the zoom.
1170
+ */
1158
1171
  [data-ui-dialog][data-full-screen='always'] > [data-part-viewport],
1159
1172
  [data-ui-dialog][data-fullscreen] > [data-part-viewport] {
1160
1173
  align-content: stretch;
1174
+ grid-template-rows: minmax(0, 1fr);
1161
1175
  padding: 0;
1162
1176
  }
1163
1177
 
@@ -1520,7 +1520,6 @@
1520
1520
  position: sticky;
1521
1521
  inset-block-start: 0;
1522
1522
  z-index: 2;
1523
- background: var(--slotted-drawer-surface, var(--slotted-surface-raised, Canvas));
1524
1523
  }
1525
1524
 
1526
1525
  [data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel']
@@ -1529,7 +1528,33 @@
1529
1528
  position: sticky;
1530
1529
  inset-block-start: 0;
1531
1530
  z-index: 1;
1532
- background: var(--slotted-drawer-surface, var(--slotted-surface-raised, Canvas));
1531
+ }
1532
+
1533
+ /**
1534
+ * At rest the panel's own surface is behind the resizer and the header, and
1535
+ * a second coat of a translucent surface read as a darker band. They paint
1536
+ * one only once the content passes under them (`data-stuck`), in tokens of
1537
+ * their own, as the footer has: a frosted theme gives them a blur and a
1538
+ * lighter fill there.
1539
+ */
1540
+ [data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel']
1541
+ > [data-part-panel]
1542
+ > :is([data-part-resizer], [data-part-header])[data-stuck] {
1543
+ background: var(
1544
+ --slotted-drawer-header-surface,
1545
+ var(--slotted-drawer-surface, var(--slotted-surface-raised, Canvas))
1546
+ );
1547
+ -webkit-backdrop-filter: var(--slotted-drawer-header-backdrop-filter, none);
1548
+ backdrop-filter: var(--slotted-drawer-header-backdrop-filter, none);
1549
+ }
1550
+
1551
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
1552
+ [data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel']
1553
+ > [data-part-panel]
1554
+ > :is([data-part-resizer], [data-part-header])[data-stuck] {
1555
+ -webkit-backdrop-filter: none;
1556
+ backdrop-filter: none;
1557
+ }
1533
1558
  }
1534
1559
 
1535
1560
  [data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel']
@@ -24,6 +24,8 @@
24
24
  "--slotted-drawer-extent-xl",
25
25
  "--slotted-drawer-footer-backdrop-filter",
26
26
  "--slotted-drawer-footer-surface",
27
+ "--slotted-drawer-header-backdrop-filter",
28
+ "--slotted-drawer-header-surface",
27
29
  "--slotted-drawer-radius",
28
30
  "--slotted-drawer-radius-expanded",
29
31
  "--slotted-drawer-resizer-line-active-color",