@slotted/styles 0.1.0-beta.35 → 0.1.0-beta.37

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 (34) hide show
  1. package/package.json +1 -1
  2. package/src/app-shell/app-shell.css +16 -13
  3. package/src/button/button.css +164 -61
  4. package/src/button/button.tokens.json +5 -2
  5. package/src/calendar/calendar.css +17 -0
  6. package/src/calendar/calendar.tokens.json +1 -0
  7. package/src/chart/chart.css +3 -2
  8. package/src/collapsible/collapsible.css +24 -6
  9. package/src/collapsible/collapsible.tokens.json +1 -0
  10. package/src/command-palette/command-palette.css +51 -1
  11. package/src/command-palette/command-palette.tokens.json +1 -0
  12. package/src/dashboard-grid/dashboard-grid.css +28 -6
  13. package/src/dashboard-grid/dashboard-grid.tokens.json +2 -1
  14. package/src/entity-picker/entity-picker.css +48 -1
  15. package/src/entity-picker/entity-picker.tokens.json +1 -0
  16. package/src/field-group/field-group.css +17 -7
  17. package/src/floating-panel/floating-panel.css +31 -7
  18. package/src/floating-panel/floating-panel.tokens.json +2 -0
  19. package/src/list/list.css +22 -0
  20. package/src/list/list.tokens.json +1 -0
  21. package/src/list-item/list-item.css +21 -27
  22. package/src/message/message.css +9 -0
  23. package/src/page/page.css +10 -0
  24. package/src/progress-indicator/progress-indicator.css +0 -70
  25. package/src/progress-indicator/progress-indicator.tokens.json +0 -3
  26. package/src/radio-group/radio-group.css +0 -50
  27. package/src/radio-group/radio-group.tokens.json +0 -2
  28. package/src/runtime-properties.mjs +6 -0
  29. package/src/section/section.css +31 -0
  30. package/src/sparkline/sparkline.css +0 -207
  31. package/src/sparkline/sparkline.tokens.json +0 -10
  32. package/src/table/table.css +213 -0
  33. package/src/table/table.tokens.json +4 -0
  34. package/src/tooltip/tooltip.css +30 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slotted/styles",
3
- "version": "0.1.0-beta.35",
3
+ "version": "0.1.0-beta.37",
4
4
  "description": "Per-family stylesheets of Slotted, bundled by the React and Angular bindings.",
5
5
  "keywords": [
6
6
  "slotted",
@@ -164,17 +164,6 @@
164
164
  --_frame: var(--slotted-app-shell-frame, var(--slotted-surface-sunken, Canvas));
165
165
  --_canvas: var(--slotted-app-shell-canvas, var(--slotted-surface, Canvas));
166
166
  --_ink: var(--slotted-app-shell-color, var(--slotted-text, CanvasText));
167
- /**
168
- * The bar of a scrolling body: the thumb at the strong border step, which
169
- * is the step `scroll-area` gives it and the one the foundation holds to
170
- * 3:1 against every surface; the track the column's own ground, because a
171
- * groove down the side of a navigation column is a second column.
172
- */
173
- --_scrollbar-thumb: var(
174
- --slotted-app-shell-scrollbar-thumb-color,
175
- var(--slotted-border-strong, ButtonBorder)
176
- );
177
- --_scrollbar-track: var(--slotted-app-shell-scrollbar-track-color, transparent);
178
167
 
179
168
  /**
180
169
  * ── The palette, region by region ──────────────────────────────────────
@@ -563,7 +552,6 @@
563
552
  overflow-block: auto;
564
553
  overscroll-behavior: contain;
565
554
  padding-block: var(--slotted-space-4, 0.5rem);
566
- scrollbar-color: var(--_scrollbar-thumb) var(--_scrollbar-track);
567
555
  scrollbar-gutter: stable;
568
556
  scrollbar-width: thin;
569
557
  }
@@ -715,10 +703,25 @@
715
703
  overscroll-behavior: contain;
716
704
  padding-block: var(--slotted-space-5, 0.75rem);
717
705
  padding-inline: calc(var(--_row-inset) + var(--_row-gap));
718
- scrollbar-color: var(--_scrollbar-thumb) var(--_scrollbar-track);
719
706
  scrollbar-gutter: stable;
720
707
  scrollbar-width: thin;
721
708
  }
709
+ /**
710
+ * The bar of the two scrolling bodies: the thumb at the strong border step,
711
+ * which is the step `scroll-area` gives it and the one the foundation holds
712
+ * to 3:1 against every surface; the track the column's own ground, because a
713
+ * groove down the side of a navigation column is a second column. Read on
714
+ * the body, so a region's own token and its own scheme reach its bar.
715
+ */
716
+ [data-ui-app-shell]
717
+ > :is([data-part-nav], [data-part-aside])
718
+ > :is([data-part-nav-body], [data-part-aside-body]) {
719
+ scrollbar-color: var(
720
+ --slotted-app-shell-scrollbar-thumb-color,
721
+ var(--slotted-border-strong, ButtonBorder)
722
+ )
723
+ var(--slotted-app-shell-scrollbar-track-color, transparent);
724
+ }
722
725
  /* Content that brings its own inset — a page, a detail panel, a list to the edges. */
723
726
  [data-ui-app-shell] > [data-part-aside] > [data-part-aside-body][data-inset='none'] {
724
727
  padding: 0;
@@ -201,10 +201,11 @@
201
201
  --_solid-active: var(--slotted-tone-danger-solid-active);
202
202
  --_on-solid: var(--slotted-tone-danger-on-solid);
203
203
  --_text: var(--slotted-tone-danger-text);
204
- /* A destructive action is the one bare control that leaves the neutral edge and ground. */
204
+ /* A destructive action is the one bare control that leaves the neutral edge and ground. The
205
+ ground is the solid as a tint: a fixed dark step under the ink reads as a hole, not as danger. */
205
206
  --_bare-edge: var(--slotted-tone-danger-border);
206
- --_bare-hover: var(--slotted-tone-danger-subtle-hover);
207
- --_bare-active: var(--slotted-tone-danger-subtle-active);
207
+ --_bare-hover: color-mix(in oklab, var(--slotted-tone-danger-solid) 12%, transparent);
208
+ --_bare-active: color-mix(in oklab, var(--slotted-tone-danger-solid) 20%, transparent);
208
209
  }
209
210
 
210
211
  /* ── Size: the control scale, one step of it per member instance ──────── */
@@ -696,42 +697,6 @@
696
697
  white-space: nowrap;
697
698
  }
698
699
 
699
- /**
700
- * `widest` reserves the width of the widest text the label can show, so a
701
- * stepper's arrow stays under the pointer as the label changes. The label is
702
- * one grid cell holding the visible text and, under it, `::before`: the texts
703
- * from an attribute, one per line, with no height and no paint, so out of
704
- * the accessible name and of the text content. The cell is as wide as the
705
- * widest and as tall as the text. The text keeps its own block, which is
706
- * what the trim below reads, and its digits take tabular figures.
707
- */
708
- [data-ui-button] [data-part-label][data-widest] {
709
- display: grid;
710
- font-variant-numeric: tabular-nums;
711
- justify-items: center;
712
- }
713
-
714
- [data-ui-button] [data-part-label][data-widest] > [data-label-text],
715
- [data-ui-button] [data-part-label][data-widest]::before {
716
- grid-area: 1 / 1;
717
- min-inline-size: 0;
718
- overflow: hidden;
719
- text-overflow: ellipsis;
720
- white-space: nowrap;
721
- }
722
-
723
- [data-ui-button] [data-part-label][data-widest] > [data-label-text] {
724
- display: block;
725
- max-inline-size: 100%;
726
- }
727
-
728
- [data-ui-button] [data-part-label][data-widest]::before {
729
- block-size: 0;
730
- content: attr(data-widest);
731
- visibility: hidden;
732
- white-space: pre;
733
- }
734
-
735
700
  /**
736
701
  * A flex container centers the line box, and a line box is not symmetric
737
702
  * around the letters inside it. Measured on this family, the word sat 1.2
@@ -761,18 +726,6 @@
761
726
  padding-block: calc((var(--slotted-line-height-sm, 1.45) * 1em - 0.75em) / 2);
762
727
  text-box: trim-both var(--slotted-text-box-edge, cap alphabetic);
763
728
  }
764
-
765
- /* Under widest the label is a grid, which nothing trims: the text's own
766
- block takes the trim and the padding. */
767
- [data-ui-button] [data-part-label][data-widest] {
768
- padding-block: 0;
769
- text-box: normal;
770
- }
771
-
772
- [data-ui-button] [data-part-label][data-widest] > [data-label-text] {
773
- padding-block: calc((var(--slotted-line-height-sm, 1.45) * 1em - 0.75em) / 2);
774
- text-box: trim-both var(--slotted-text-box-edge, cap alphabetic);
775
- }
776
729
  }
777
730
 
778
731
  /**
@@ -853,6 +806,86 @@
853
806
  min-inline-size: var(--_icon-size);
854
807
  }
855
808
 
809
+ /**
810
+ * ── Widest ─────────────────────────────────────────────────────────────
811
+ *
812
+ * `widest` reserves the width of the whole content with the widest text the
813
+ * label can show, so a stepper's arrow stays under the pointer as the label
814
+ * changes. The control is a grid of one row: the start slot, the label and
815
+ * the end slot at their own widths, between two tracks that share the room
816
+ * left over, so what is visible is centered whatever is missing. `::before`
817
+ * crosses every track and gives the row its width: the texts from an
818
+ * attribute, one per line, with no height and no paint, so out of the
819
+ * accessible name and of the text content, and the room of a start and an
820
+ * end that are part of the control. A start that renders nothing is drawn at
821
+ * no width and stays in that room.
822
+ *
823
+ * shortcut: a slot wider than its icon box (a key) is reserved at the icon's
824
+ * width, reserve its own measure when a stepper holds one.
825
+ */
826
+ [data-ui-button][data-widest] {
827
+ --_reserve-start: 0px;
828
+ --_reserve-end: 0px;
829
+
830
+ column-gap: 0;
831
+ display: inline-grid;
832
+ font-variant-numeric: tabular-nums;
833
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, auto) auto minmax(0, 1fr);
834
+ }
835
+
836
+ [data-ui-button][data-widest]:has(> [data-part-start]) {
837
+ --_reserve-start: calc(var(--slotted-button-widest-start, var(--_icon-size)) + var(--_gap));
838
+ }
839
+
840
+ [data-ui-button][data-widest]:has(> [data-part-end]) {
841
+ --_reserve-end: calc(var(--_icon-size) + var(--_gap));
842
+ }
843
+
844
+ [data-ui-button][data-widest][data-justify='between'] {
845
+ grid-template-columns: 0 auto minmax(0, 1fr) auto 0;
846
+ }
847
+
848
+ /* One inset on both sides: the smaller one beside a glyph would move the center. */
849
+ [data-ui-button][data-widest]:not([data-shape], [data-inline]) {
850
+ padding-inline: var(--_padding-inline);
851
+ }
852
+
853
+ [data-ui-button][data-widest]::before {
854
+ block-size: 0;
855
+ box-sizing: border-box;
856
+ content: attr(data-widest);
857
+ grid-area: 1 / 1 / 2 / -1;
858
+ min-inline-size: 0;
859
+ overflow: hidden;
860
+ padding-inline: var(--_reserve-start) var(--_reserve-end);
861
+ visibility: hidden;
862
+ white-space: pre;
863
+ }
864
+
865
+ [data-ui-button][data-widest] > [data-part-start] {
866
+ grid-area: 1 / 2;
867
+ margin-inline-end: var(--_gap);
868
+ }
869
+
870
+ /* As wide as the mark it holds, up to the glyph's box, so the group starts where the mark does. */
871
+ [data-ui-button][data-widest] > [data-part-start]:not(:has(> [data-ui-kbd])) {
872
+ inline-size: fit-content;
873
+ max-inline-size: var(--_icon-size);
874
+ }
875
+
876
+ [data-ui-button][data-widest] > [data-part-start]:empty {
877
+ display: none;
878
+ }
879
+
880
+ [data-ui-button][data-widest] > [data-part-label] {
881
+ grid-area: 1 / 3;
882
+ }
883
+
884
+ [data-ui-button][data-widest] > [data-part-end] {
885
+ grid-area: 1 / 4;
886
+ margin-inline-start: var(--_gap);
887
+ }
888
+
856
889
  /**
857
890
  * An icon-only control is square from the control height, so its visual box
858
891
  * and its target are the same box. The two minimums are the WCAG 2.2 floor
@@ -876,10 +909,11 @@
876
909
  /**
877
910
  * A text action inside a line — "show details" in a sentence, "split" in a
878
911
  * dense table cell — is a word of that line. It takes the font, weight and
879
- * line height around it, draws no box in any variant, stands on the
880
- * baseline and is underlined in its tone's text color, so the row keeps its
881
- * height and the word lines up with its neighbours. WCAG 2.5.8 exempts a
882
- * target inside a sentence from the 24px minimum.
912
+ * line height around it, or the step of the text scale its `size` names, draws
913
+ * no box in any variant, stands on the baseline and is underlined in its tone's
914
+ * text color, so the row keeps its height and the word lines up with its
915
+ * neighbours. WCAG 2.5.8 exempts a target inside a sentence from the 24px
916
+ * minimum.
883
917
  */
884
918
  [data-ui-button][data-inline]:not([data-shape]) {
885
919
  background: transparent;
@@ -898,6 +932,19 @@
898
932
  vertical-align: baseline;
899
933
  }
900
934
 
935
+ /* The root writes no size of its own here: only one the consumer stated. */
936
+ [data-ui-button][data-inline]:not([data-shape])[data-size='sm'] {
937
+ font-size: var(--slotted-font-size-sm, 0.8125rem);
938
+ }
939
+
940
+ [data-ui-button][data-inline]:not([data-shape])[data-size='md'] {
941
+ font-size: var(--slotted-font-size-md, 0.875rem);
942
+ }
943
+
944
+ [data-ui-button][data-inline]:not([data-shape])[data-size='lg'] {
945
+ font-size: var(--slotted-font-size-lg, 1rem);
946
+ }
947
+
901
948
  [data-ui-button][data-inline]:not([data-shape]) [data-part-label] {
902
949
  line-height: inherit;
903
950
  padding-block: 0;
@@ -920,20 +967,44 @@
920
967
 
921
968
  /**
922
969
  * An icon-only control inside a line of text — a help trigger beside a term
923
- * — is that line tall, so the line does not grow. The box takes the text's
924
- * line height and stands on the line box's top, and a pseudo-element outside
925
- * layout keeps the target at the WCAG 2.2 minimum around it.
970
+ * — is a mark on the capital beside it. The icon is the capital height
971
+ * rounded to a pixel and two pixels more at each end, and it hangs those two
972
+ * below the baseline: text and icon snap to the pixel grid each on its own,
973
+ * and an icon a whole even number of pixels taller than the capital snaps
974
+ * with it wherever the line stands.
975
+ *
976
+ * The icon's box is the capital alone and the two pixels hang outside it, so
977
+ * the control's baseline is the text's in a line and in a flex row that aligns
978
+ * baselines. The ground is one line tall; margins take back what of it passes
979
+ * the capital, so the line keeps its height. A pseudo-element outside layout
980
+ * keeps the target at the WCAG 2.2 minimum.
926
981
  */
927
982
  [data-ui-button][data-shape][data-inline] {
983
+ --_capital: round(1cap, 1px);
928
984
  block-size: 1lh;
929
- font-size: inherit;
985
+ font: inherit;
930
986
  inline-size: 1lh;
931
- line-height: inherit;
987
+ margin-block: calc((var(--_capital) - 1lh) / 2);
932
988
  margin-inline-start: 0.25em;
933
989
  min-block-size: 0;
934
990
  min-inline-size: 0;
935
991
  position: relative;
936
- vertical-align: top;
992
+ vertical-align: baseline;
993
+ }
994
+
995
+ [data-ui-button][data-shape][data-inline] [data-part-icon] {
996
+ --_icon-size: calc(var(--_capital) + 4px);
997
+ block-size: var(--_capital);
998
+ font-size: inherit;
999
+ inline-size: var(--_capital);
1000
+ }
1001
+
1002
+ [data-ui-button][data-shape][data-inline] [data-part-icon] > *:not([data-part-indicator]) {
1003
+ block-size: calc(100% + 4px);
1004
+ inline-size: calc(100% + 4px);
1005
+ inset-block-start: -2px;
1006
+ inset-inline-start: -2px;
1007
+ position: absolute;
937
1008
  }
938
1009
 
939
1010
  [data-ui-button][data-shape][data-inline]::before {
@@ -946,6 +1017,38 @@
946
1017
  position: absolute;
947
1018
  }
948
1019
 
1020
+ /**
1021
+ * In ghost it is a mark on the text rather than a control beside it: no
1022
+ * ground under the pointer. In the secondary tone it is quieter than the
1023
+ * term it explains, and takes the text color while it is being read.
1024
+ */
1025
+ [data-ui-button][data-shape][data-inline][data-variant='ghost']:hover:not(:disabled):not(
1026
+ [data-disabled]
1027
+ ):not([data-loading]):not([data-pressed]),
1028
+ [data-ui-button][data-shape][data-inline][data-variant='ghost']:active:not(:disabled):not(
1029
+ [data-disabled]
1030
+ ):not([data-loading]):not([data-pressed]) {
1031
+ background: transparent;
1032
+ }
1033
+
1034
+ [data-ui-button][data-shape][data-inline][data-variant='ghost'][data-tone='secondary']:not(
1035
+ :disabled
1036
+ ):not([data-disabled]):not([data-pressed]) {
1037
+ color: var(--slotted-text-muted, GrayText);
1038
+ }
1039
+
1040
+ [data-ui-button][data-shape][data-inline][data-variant='ghost'][data-tone='secondary']:hover:not(
1041
+ :disabled
1042
+ ):not([data-disabled]):not([data-loading]):not([data-pressed]),
1043
+ [data-ui-button][data-shape][data-inline][data-variant='ghost'][data-tone='secondary']:focus-visible:not(
1044
+ :disabled
1045
+ ):not([data-disabled]):not([data-pressed]),
1046
+ [data-ui-button][data-shape][data-inline][data-variant='ghost'][data-tone='secondary'][data-open]:not(
1047
+ :disabled
1048
+ ):not([data-disabled]):not([data-pressed]) {
1049
+ color: var(--slotted-text, CanvasText);
1050
+ }
1051
+
949
1052
  /**
950
1053
  * ── Forced colors ────────────────────────────────────────────────────
951
1054
  *
@@ -1,6 +1,7 @@
1
1
  [
2
2
  "--slotted-border-subtle",
3
3
  "--slotted-border-width-thin",
4
+ "--slotted-button-widest-start",
4
5
  "--slotted-control-border-color",
5
6
  "--slotted-control-border-width",
6
7
  "--slotted-control-font-family",
@@ -34,11 +35,15 @@
34
35
  "--slotted-focus-ring-color",
35
36
  "--slotted-focus-ring-offset",
36
37
  "--slotted-focus-ring-width",
38
+ "--slotted-font-size-lg",
39
+ "--slotted-font-size-md",
40
+ "--slotted-font-size-sm",
37
41
  "--slotted-line-height-sm",
38
42
  "--slotted-radius-full",
39
43
  "--slotted-radius-sm",
40
44
  "--slotted-space-2",
41
45
  "--slotted-target-min",
46
+ "--slotted-text",
42
47
  "--slotted-text-box-edge",
43
48
  "--slotted-text-muted",
44
49
  "--slotted-tone-accent-border",
@@ -54,8 +59,6 @@
54
59
  "--slotted-tone-danger-solid",
55
60
  "--slotted-tone-danger-solid-active",
56
61
  "--slotted-tone-danger-solid-hover",
57
- "--slotted-tone-danger-subtle-active",
58
- "--slotted-tone-danger-subtle-hover",
59
62
  "--slotted-tone-danger-text",
60
63
  "--slotted-tone-info-on-solid",
61
64
  "--slotted-tone-info-solid",
@@ -903,6 +903,23 @@
903
903
  padding-block: var(--slotted-space-2, 0.25rem);
904
904
  }
905
905
 
906
+ /* Between the days and not around them: the lines divide a plane, they frame nothing. */
907
+ [data-ui-calendar][data-layout='fill'][data-lines]
908
+ [data-part-week]
909
+ > [data-part-cell]
910
+ + [data-part-cell] {
911
+ border-inline-start: var(--slotted-border-width-thin, 1px) solid
912
+ var(--slotted-calendar-line-color, var(--slotted-border-subtle, ButtonBorder));
913
+ }
914
+
915
+ [data-ui-calendar][data-layout='fill'][data-lines]
916
+ [data-part-week]
917
+ + [data-part-week]
918
+ > [data-part-cell] {
919
+ border-block-start: var(--slotted-border-width-thin, 1px) solid
920
+ var(--slotted-calendar-line-color, var(--slotted-border-subtle, ButtonBorder));
921
+ }
922
+
906
923
  [data-ui-calendar] [data-part-day-content] {
907
924
  align-items: center;
908
925
  display: flex;
@@ -12,6 +12,7 @@
12
12
  "--slotted-calendar-in-range-color",
13
13
  "--slotted-calendar-invalid-edge-width",
14
14
  "--slotted-calendar-invalid-focus-ring-color",
15
+ "--slotted-calendar-line-color",
15
16
  "--slotted-calendar-outside-color",
16
17
  "--slotted-calendar-preview-background",
17
18
  "--slotted-calendar-preview-border-color",
@@ -889,8 +889,9 @@
889
889
  visibility var(--slotted-duration-instant) linear var(--slotted-duration-short);
890
890
  }
891
891
 
892
- /* Content a consumer adds beside the parts takes the tooltip's full width. */
893
- [data-ui-chart] [data-part-tooltip] > :not([data-part]) {
892
+ /* Content a consumer adds beside the tooltip's parts, or in their place, takes
893
+ the full width; a family's root carries a `data-part` of its own. */
894
+ [data-ui-chart] [data-part-tooltip] > :not([data-part^='tooltip-']) {
894
895
  grid-column: 1 / -1;
895
896
  overflow-wrap: anywhere;
896
897
  }
@@ -532,7 +532,20 @@
532
532
  * duration. The content is drawn, clipped at the peek and faded at its end;
533
533
  * the binding keeps it inert, so nothing in the clipped part takes focus.
534
534
  * Forced colors drop the fade and keep the clip.
535
+ *
536
+ * A control drawn over the end (`more`) is keyed on an attribute of its own:
537
+ * a Button given through `render` names its own part. The content is gone
538
+ * under the part of it that stands over the panel, and the fade ends where
539
+ * that part starts, so no line is legible beneath it at any height.
535
540
  */
541
+ [data-ui-collapsible][data-peek] {
542
+ --_overlap: 0px;
543
+ }
544
+
545
+ [data-ui-collapsible][data-peek]:has(> [data-collapsible-more]) {
546
+ --_overlap: var(--slotted-collapsible-more-overlap, 1.5rem);
547
+ }
548
+
536
549
  [data-ui-collapsible][data-peek] > [data-part-panel] {
537
550
  grid-template-rows: minmax(var(--_peek), 0fr);
538
551
  }
@@ -545,8 +558,8 @@
545
558
  content-visibility: visible;
546
559
  mask-image: linear-gradient(
547
560
  to bottom,
548
- #000 calc(100% - var(--slotted-collapsible-peek-fade, 3rem)),
549
- transparent
561
+ #000 calc(100% - var(--_overlap) - var(--slotted-collapsible-peek-fade, 3rem)),
562
+ transparent calc(100% - var(--_overlap))
550
563
  );
551
564
  opacity: 1;
552
565
  padding-block-start: var(
@@ -555,12 +568,13 @@
555
568
  );
556
569
  }
557
570
 
558
- /* Over the fade, at the end of what is in view. */
559
- [data-ui-collapsible] > [data-part-more] {
571
+ /* Past the fade, at the end of what is in view. */
572
+ [data-ui-collapsible] > [data-collapsible-more] {
573
+ align-self: start;
560
574
  grid-column: 1 / -1;
561
575
  grid-row: 3;
562
576
  justify-self: center;
563
- margin-block: calc(-1 * var(--slotted-collapsible-peek-fade, 3rem) / 2) var(--_padding-block);
577
+ margin-block: calc(-1 * var(--_overlap)) var(--_padding-block);
564
578
  position: relative;
565
579
  z-index: 1;
566
580
  }
@@ -569,6 +583,10 @@
569
583
  [data-ui-collapsible][data-peek]:not([data-open]) > [data-part-panel] > [data-part-content] {
570
584
  mask-image: none;
571
585
  }
586
+
587
+ [data-ui-collapsible] > [data-collapsible-more] {
588
+ margin-block-start: var(--_padding-block);
589
+ }
572
590
  }
573
591
 
574
592
  /**
@@ -709,7 +727,7 @@
709
727
  grid-row: 3;
710
728
  }
711
729
 
712
- [data-ui-collapsible] > [data-part-more] {
730
+ [data-ui-collapsible] > [data-collapsible-more] {
713
731
  grid-row: 4;
714
732
  }
715
733
  }
@@ -9,6 +9,7 @@
9
9
  "--slotted-collapsible-hover-background",
10
10
  "--slotted-collapsible-hover-color",
11
11
  "--slotted-collapsible-indicator-color",
12
+ "--slotted-collapsible-more-overlap",
12
13
  "--slotted-collapsible-padding-inline",
13
14
  "--slotted-collapsible-panel-color",
14
15
  "--slotted-collapsible-panel-padding-block-start",
@@ -577,10 +577,60 @@
577
577
  /**
578
578
  * At rest the label stands on the panel's own surface and paints none, so a
579
579
  * translucent panel does not draw a second layer under every label. Only
580
- * while it is stuck, with rows passing under it, does it fill.
580
+ * while it is stuck, with rows passing under it, does it fill. Under a
581
+ * material panel that fill is translucent, so the label blurs the rows with
582
+ * the panel's filter, or with one the theme states for it.
583
+ *
584
+ * A blur leaves part of a sharp row in view. Where the engine times an
585
+ * animation by the scroll, the rows end at the label instead: each one is cut
586
+ * by the share of it that has passed the label's bottom edge, which is the
587
+ * list's scroll padding. Nothing is under the label then, so it paints no
588
+ * fill and no filter but the ones a theme states.
581
589
  */
582
590
  [data-ui-command-palette] [data-part-group-label][data-stuck] {
583
591
  background: var(--slotted-command-palette-group-label-stuck-surface, var(--_surface));
592
+ -webkit-backdrop-filter: var(
593
+ --slotted-command-palette-group-label-stuck-backdrop-filter,
594
+ var(--slotted-command-palette-backdrop-filter, none)
595
+ );
596
+ backdrop-filter: var(
597
+ --slotted-command-palette-group-label-stuck-backdrop-filter,
598
+ var(--slotted-command-palette-backdrop-filter, none)
599
+ );
600
+ }
601
+
602
+ @supports (animation-timeline: view()) {
603
+ [data-ui-command-palette] [data-part-group-label][data-stuck] {
604
+ background: var(--slotted-command-palette-group-label-stuck-surface, transparent);
605
+ -webkit-backdrop-filter: var(
606
+ --slotted-command-palette-group-label-stuck-backdrop-filter,
607
+ none
608
+ );
609
+ backdrop-filter: var(--slotted-command-palette-group-label-stuck-backdrop-filter, none);
610
+ }
611
+
612
+ [data-ui-command-palette] [data-part-group-label][data-stuck] ~ * {
613
+ animation: slotted-command-palette-under-label linear forwards;
614
+ animation-range: exit;
615
+ animation-timeline: view();
616
+ }
617
+ }
618
+
619
+ @keyframes slotted-command-palette-under-label {
620
+ from {
621
+ clip-path: inset(0);
622
+ }
623
+
624
+ to {
625
+ clip-path: inset(100% 0 0);
626
+ }
627
+ }
628
+
629
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
630
+ [data-ui-command-palette] [data-part-group-label][data-stuck] {
631
+ -webkit-backdrop-filter: none;
632
+ backdrop-filter: none;
633
+ }
584
634
  }
585
635
 
586
636
  @media (forced-colors: active) {
@@ -6,6 +6,7 @@
6
6
  "--slotted-command-palette-border-color",
7
7
  "--slotted-command-palette-footer-surface",
8
8
  "--slotted-command-palette-group-label-height",
9
+ "--slotted-command-palette-group-label-stuck-backdrop-filter",
9
10
  "--slotted-command-palette-group-label-stuck-surface",
10
11
  "--slotted-command-palette-highlight",
11
12
  "--slotted-command-palette-highlight-ring",
@@ -221,21 +221,43 @@
221
221
  overflow-wrap: anywhere;
222
222
  }
223
223
 
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. */
224
+ /* The title and its help control on one row, on the baseline of the title's
225
+ first line. The row takes the title's type, so the inline icon button is
226
+ drawn from the title's capital and adds nothing to the row's height. */
226
227
  [data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] {
227
- align-items: flex-start;
228
+ align-items: baseline;
228
229
  display: flex;
230
+ font-family: var(
231
+ --slotted-dashboard-grid-title-font-family,
232
+ var(
233
+ --slotted-font-family-heading,
234
+ var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif)
235
+ )
236
+ );
237
+ font-size: var(
238
+ --slotted-dashboard-grid-title-font-size,
239
+ var(--slotted-font-size-md, 0.8125rem)
240
+ );
229
241
  gap: var(--slotted-space-1, 0.125rem);
242
+ line-height: var(--slotted-line-height-md, 1.5);
230
243
  }
231
244
 
232
- /* An annotation of the title rather than a button beside it: the inline
233
- icon button is one line of the title tall, muted until hovered. */
245
+ /* An annotation of the title rather than a button beside it. Its ground says
246
+ it is a control under the pointer, and that the note is its own when open. */
234
247
  [data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] > [data-part-help] {
235
- color: var(--slotted-dashboard-grid-description-color, var(--slotted-text-muted, GrayText));
236
248
  flex: none;
237
249
  }
238
250
 
251
+ [data-ui-dashboard-grid]
252
+ [data-part-widget]
253
+ [data-part-title-row]
254
+ > [data-part-help][data-inline][data-variant]:hover:not(:disabled):not([data-disabled]):not(
255
+ [data-loading]
256
+ ),
257
+ [data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] > [data-part-help][data-open] {
258
+ background: var(--slotted-tone-secondary-subtle-hover, ButtonFace);
259
+ }
260
+
239
261
  /**
240
262
  * The note behind it holds a few sentences, wider than the small popover's
241
263
  * measure. The layer is portaled out of the grid, so the rule finds it by
@@ -64,5 +64,6 @@
64
64
  "--slotted-text",
65
65
  "--slotted-text-muted",
66
66
  "--slotted-tone-accent-on-solid",
67
- "--slotted-tone-accent-solid"
67
+ "--slotted-tone-accent-solid",
68
+ "--slotted-tone-secondary-subtle-hover"
68
69
  ]