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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slotted/styles",
3
- "version": "0.1.0-beta.35",
3
+ "version": "0.1.0-beta.36",
4
4
  "description": "Per-family stylesheets of Slotted, bundled by the React and Angular bindings.",
5
5
  "keywords": [
6
6
  "slotted",
@@ -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;
@@ -946,6 +993,38 @@
946
993
  position: absolute;
947
994
  }
948
995
 
996
+ /**
997
+ * In ghost it is a mark on the text rather than a control beside it: no
998
+ * ground under the pointer. In the secondary tone it is quieter than the
999
+ * term it explains, and takes the text color while it is being read.
1000
+ */
1001
+ [data-ui-button][data-shape][data-inline][data-variant='ghost']:hover:not(:disabled):not(
1002
+ [data-disabled]
1003
+ ):not([data-loading]):not([data-pressed]),
1004
+ [data-ui-button][data-shape][data-inline][data-variant='ghost']:active:not(:disabled):not(
1005
+ [data-disabled]
1006
+ ):not([data-loading]):not([data-pressed]) {
1007
+ background: transparent;
1008
+ }
1009
+
1010
+ [data-ui-button][data-shape][data-inline][data-variant='ghost'][data-tone='secondary']:not(
1011
+ :disabled
1012
+ ):not([data-disabled]):not([data-pressed]) {
1013
+ color: var(--slotted-text-muted, GrayText);
1014
+ }
1015
+
1016
+ [data-ui-button][data-shape][data-inline][data-variant='ghost'][data-tone='secondary']:hover:not(
1017
+ :disabled
1018
+ ):not([data-disabled]):not([data-loading]):not([data-pressed]),
1019
+ [data-ui-button][data-shape][data-inline][data-variant='ghost'][data-tone='secondary']:focus-visible:not(
1020
+ :disabled
1021
+ ):not([data-disabled]):not([data-pressed]),
1022
+ [data-ui-button][data-shape][data-inline][data-variant='ghost'][data-tone='secondary'][data-open]:not(
1023
+ :disabled
1024
+ ):not([data-disabled]):not([data-pressed]) {
1025
+ color: var(--slotted-text, CanvasText);
1026
+ }
1027
+
949
1028
  /**
950
1029
  * ── Forced colors ────────────────────────────────────────────────────
951
1030
  *
@@ -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",
@@ -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,36 @@
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. The row takes the title's type,
225
+ so the inline icon button is one line of the title tall and centers on the
226
+ first of them without adding to the row's height. */
226
227
  [data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] {
227
228
  align-items: flex-start;
228
229
  display: flex;
230
+ font-size: var(
231
+ --slotted-dashboard-grid-title-font-size,
232
+ var(--slotted-font-size-md, 0.8125rem)
233
+ );
229
234
  gap: var(--slotted-space-1, 0.125rem);
235
+ line-height: var(--slotted-line-height-md, 1.5);
230
236
  }
231
237
 
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. */
238
+ /* An annotation of the title rather than a button beside it. Its ground says
239
+ it is a control under the pointer, and that the note is its own when open. */
234
240
  [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
241
  flex: none;
237
242
  }
238
243
 
244
+ [data-ui-dashboard-grid]
245
+ [data-part-widget]
246
+ [data-part-title-row]
247
+ > [data-part-help][data-inline][data-variant]:hover:not(:disabled):not([data-disabled]):not(
248
+ [data-loading]
249
+ ),
250
+ [data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] > [data-part-help][data-open] {
251
+ background: var(--slotted-tone-secondary-subtle-hover, ButtonFace);
252
+ }
253
+
239
254
  /**
240
255
  * The note behind it holds a few sentences, wider than the small popover's
241
256
  * 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
  ]
@@ -1013,10 +1013,57 @@
1013
1013
  /**
1014
1014
  * At rest the label stands on the panel's own surface and paints none, so a
1015
1015
  * translucent panel does not draw a second layer under every label. Only
1016
- * while it is stuck, with rows passing under it, does it fill.
1016
+ * while it is stuck, with rows passing under it, does it fill. Under a
1017
+ * material panel that fill is translucent, so the label blurs the rows with
1018
+ * the panel's filter, or with one the theme states for it.
1019
+ *
1020
+ * A blur leaves part of a sharp row in view. Where the engine times an
1021
+ * animation by the scroll, the rows end at the label instead: each one is cut
1022
+ * by the share of it that has passed the label's bottom edge, which is the
1023
+ * list's scroll padding. Nothing is under the label then, so it paints no
1024
+ * fill and no filter but the ones a theme states.
1017
1025
  */
1018
1026
  [data-ui-entity-picker][data-part-positioner] [data-part-group-label][data-stuck] {
1019
1027
  background: var(--slotted-entity-picker-group-label-stuck-surface, var(--_surface));
1028
+ -webkit-backdrop-filter: var(
1029
+ --slotted-entity-picker-group-label-stuck-backdrop-filter,
1030
+ var(--slotted-entity-picker-content-backdrop-filter, none)
1031
+ );
1032
+ backdrop-filter: var(
1033
+ --slotted-entity-picker-group-label-stuck-backdrop-filter,
1034
+ var(--slotted-entity-picker-content-backdrop-filter, none)
1035
+ );
1036
+ }
1037
+
1038
+ @supports (animation-timeline: view()) {
1039
+ [data-ui-entity-picker][data-part-positioner] [data-part-group-label][data-stuck] {
1040
+ background: var(--slotted-entity-picker-group-label-stuck-surface, transparent);
1041
+ -webkit-backdrop-filter: var(--slotted-entity-picker-group-label-stuck-backdrop-filter, none);
1042
+ backdrop-filter: var(--slotted-entity-picker-group-label-stuck-backdrop-filter, none);
1043
+ }
1044
+
1045
+ [data-ui-entity-picker][data-part-positioner] [data-part-group-label][data-stuck] ~ * {
1046
+ animation: slotted-entity-picker-under-label linear forwards;
1047
+ animation-range: exit;
1048
+ animation-timeline: view();
1049
+ }
1050
+ }
1051
+
1052
+ @keyframes slotted-entity-picker-under-label {
1053
+ from {
1054
+ clip-path: inset(0);
1055
+ }
1056
+
1057
+ to {
1058
+ clip-path: inset(100% 0 0);
1059
+ }
1060
+ }
1061
+
1062
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
1063
+ [data-ui-entity-picker][data-part-positioner] [data-part-group-label][data-stuck] {
1064
+ -webkit-backdrop-filter: none;
1065
+ backdrop-filter: none;
1066
+ }
1020
1067
  }
1021
1068
 
1022
1069
  @media (forced-colors: active) {
@@ -62,6 +62,7 @@
62
62
  "--slotted-entity-picker-field-basis",
63
63
  "--slotted-entity-picker-field-min",
64
64
  "--slotted-entity-picker-group-label-height",
65
+ "--slotted-entity-picker-group-label-stuck-backdrop-filter",
65
66
  "--slotted-entity-picker-group-label-stuck-surface",
66
67
  "--slotted-entity-picker-highlight",
67
68
  "--slotted-entity-picker-highlight-active",
@@ -20,7 +20,7 @@
20
20
  * competes with it.
21
21
  */
22
22
  [data-ui-field-group][data-part-root] {
23
- --_font-size: var(--slotted-control-font-size-lg, 14px);
23
+ --_font-size: var(--slotted-control-font-size-md, 13px);
24
24
  /** Legend to its own description, and description to error. */
25
25
  --_message-gap: var(--slotted-field-group-message-gap, var(--slotted-space-2, 0.25rem));
26
26
  /**
@@ -76,24 +76,34 @@
76
76
  /* ── Size ─────────────────────────────────────────────────────────────
77
77
  *
78
78
  * The same three steps a field has, and for the same reason: a group in a
79
- * dense table shrinks with the controls it holds. The legend reads the control
80
- * type scale one step above the field label it sits over — the difference
81
- * between a legend and a label at the same step is weight rather than size,
82
- * because a third type scale would be a fourth thing for a theme to retune.
79
+ * dense table shrinks with the controls it holds. A question's legend takes
80
+ * the type of a field's label, because it names one answer as a label does. A
81
+ * section's legend stands one step above the labels under it.
83
82
  */
84
83
 
85
84
  [data-ui-field-group][data-part-root][data-size='sm'] {
86
- --_font-size: var(--slotted-control-font-size-md, 13px);
85
+ --_font-size: var(--slotted-control-font-size-sm, 12px);
87
86
  }
88
87
 
89
88
  [data-ui-field-group][data-part-root][data-size='md'] {
90
- --_font-size: var(--slotted-control-font-size-lg, 14px);
89
+ --_font-size: var(--slotted-control-font-size-md, 13px);
91
90
  }
92
91
 
93
92
  [data-ui-field-group][data-part-root][data-size='lg'] {
94
93
  --_font-size: var(--slotted-control-font-size-lg, 14px);
95
94
  }
96
95
 
96
+ [data-ui-field-group][data-part-root][data-kind='section']:is(
97
+ [data-size='md'],
98
+ [data-size='lg']
99
+ ) {
100
+ --_font-size: var(--slotted-control-font-size-lg, 14px);
101
+ }
102
+
103
+ [data-ui-field-group][data-part-root][data-kind='section'][data-size='sm'] {
104
+ --_font-size: var(--slotted-control-font-size-md, 13px);
105
+ }
106
+
97
107
  /* ── The legend ───────────────────────────────────────────────────────
98
108
  *
99
109
  * The name of the set. The user agent gives a legend an inline padding of its
package/src/list/list.css CHANGED
@@ -192,6 +192,28 @@
192
192
  padding-inline: 0;
193
193
  }
194
194
 
195
+ /**
196
+ * `fill="inset"` is the form of a list on a phone: a pressed row reads as a
197
+ * rounded tile that reaches past the content, not as a stripe. The set bleeds
198
+ * by the tile's reach and its rows pad their content back by as much, so the
199
+ * icons, the names and the group headings keep the inline edge of the
200
+ * container, which pads its content by at least that. A framed or separated
201
+ * list draws its own box and keeps to it.
202
+ */
203
+ [data-ui-list][data-part-root][data-fill='inset']:is(
204
+ [data-variant='plain'],
205
+ [data-variant='ruled']
206
+ ) {
207
+ --_row-inset-inline: var(--slotted-list-fill-inset, var(--slotted-space-3, 0.375rem));
208
+
209
+ margin-inline: calc(-1 * var(--_row-inset-inline));
210
+ }
211
+
212
+ [data-ui-list][data-inset][data-fill='inset']:is([data-variant='plain'], [data-variant='ruled'])
213
+ :is([data-part-section-label], [data-part-empty]) {
214
+ padding-inline: var(--_row-inset-inline);
215
+ }
216
+
195
217
  /**
196
218
  * A heading that stays while its own rows scroll past. MUI ships it and is
197
219
  * the only surveyed source that does; composing it needs the family's ground
@@ -15,6 +15,7 @@
15
15
  "--slotted-list-empty-padding",
16
16
  "--slotted-list-empty-padding-lg",
17
17
  "--slotted-list-empty-padding-sm",
18
+ "--slotted-list-fill-inset",
18
19
  "--slotted-list-gap",
19
20
  "--slotted-list-gap-lg",
20
21
  "--slotted-list-gap-sm",
@@ -979,37 +979,36 @@
979
979
  /**
980
980
  * ── The inset fill ─────────────────────────────────────────────────────
981
981
  *
982
- * `fill="inset"` on the list: the row's grounds, its rule and its state edge
983
- * are drawn on a tile inside a gutter of `--slotted-list-fill-inset`, with
984
- * the row's radius, so a pressed row on a phone reads as a tile rather than
985
- * a stripe across the screen. The row itself paints nothing and its content
986
- * stays where it was; the tile sits under it in the row's own stacking
987
- * context.
982
+ * `fill="inset"` on a plain or ruled list: the list reaches past its content
983
+ * by `--slotted-list-fill-inset` on each side (its own stylesheet), and the
984
+ * row gives that distance back as its inline padding. The content keeps the
985
+ * inline edge of the container, and the row's box, with its radius, is the
986
+ * tile its grounds are painted on and the target the finger lands on. The
987
+ * rule between rows stays as wide as the content.
988
988
  */
989
- [data-ui-list-item][data-fill='inset'] {
990
- --_fill-inset: var(--slotted-list-fill-inset, var(--slotted-space-3, 0.375rem));
989
+ [data-ui-list-item][data-fill='inset']:is([data-variant='plain'], [data-variant='ruled']) {
990
+ --_pad-inline: var(--slotted-list-fill-inset, var(--slotted-space-3, 0.375rem));
991
991
 
992
- background-color: transparent;
993
- box-shadow: none;
994
- isolation: isolate;
992
+ border-radius: var(--_radius);
993
+ box-shadow: var(--_edge-shadow);
995
994
  position: relative;
996
995
  }
997
996
 
998
- [data-ui-list-item][data-fill='inset']::after {
999
- background-color: var(--_fill);
1000
- border-radius: var(--_radius);
1001
- box-shadow: var(--_rule-shadow), var(--_edge-shadow);
997
+ [data-ui-list-item][data-fill='inset'][data-inset]:is(
998
+ [data-variant='plain'],
999
+ [data-variant='ruled']
1000
+ )
1001
+ > [data-part-content] {
1002
+ padding-inline: var(--_pad-inline);
1003
+ }
1004
+
1005
+ [data-ui-list-item][data-fill='inset'][data-variant='ruled']:not(:first-child)::after {
1006
+ box-shadow: var(--_rule-shadow);
1002
1007
  content: '';
1003
1008
  inset-block: 0;
1004
- inset-inline: var(--_fill-inset);
1009
+ inset-inline: var(--_pad-inline);
1005
1010
  pointer-events: none;
1006
1011
  position: absolute;
1007
- transition:
1008
- background-color var(--slotted-control-transition-duration, var(--slotted-duration-short))
1009
- var(--slotted-control-transition-easing, var(--slotted-easing-standard)),
1010
- box-shadow var(--slotted-control-transition-duration, var(--slotted-duration-short))
1011
- var(--slotted-control-transition-easing, var(--slotted-easing-standard));
1012
- z-index: -1;
1013
1012
  }
1014
1013
 
1015
1014
  /**
@@ -1030,11 +1029,6 @@
1030
1029
  background-color: Highlight;
1031
1030
  }
1032
1031
 
1033
- /* The tile would be forced to Canvas over that ground. */
1034
- [data-ui-list-item][data-fill='inset']::after {
1035
- display: none;
1036
- }
1037
-
1038
1032
  [data-ui-list-item][data-selected] > [data-part-content] {
1039
1033
  color: HighlightText;
1040
1034
  }
@@ -1638,74 +1638,4 @@
1638
1638
  background-color: Canvas;
1639
1639
  }
1640
1640
  }
1641
-
1642
- /* ── Segmented ────────────────────────────────────────────────────────
1643
- *
1644
- * One total in parts: the track is a row of segments whose flex growth is
1645
- * each part's value, so their widths keep the parts' ratio at any width,
1646
- * with a hairline of the ground between two of them. A segment's color is
1647
- * a data palette slot; a remainder is hatched in the muted ink, so it is
1648
- * told apart by more than color. Marking one part dims the others with the
1649
- * motion tokens, and at once under reduced motion.
1650
- */
1651
- [data-ui-progress-indicator][data-shape='segmented'] {
1652
- --_thickness: var(--slotted-progress-indicator-thickness, var(--slotted-space-4, 0.5rem));
1653
-
1654
- display: grid;
1655
- row-gap: var(--slotted-space-2, 0.25rem);
1656
- }
1657
-
1658
- [data-ui-progress-indicator][data-shape='segmented'] > [data-part-track] {
1659
- block-size: var(--_thickness);
1660
- border-radius: var(--_radius);
1661
- column-gap: var(--slotted-segmented-bar-gap, var(--slotted-border-width-medium, 2px));
1662
- display: flex;
1663
- overflow: clip;
1664
- }
1665
-
1666
- [data-ui-progress-indicator][data-shape='segmented'] [data-part-segment] {
1667
- background-color: var(--_segment-color, var(--slotted-text-muted, GrayText));
1668
- flex-basis: 0;
1669
- min-inline-size: 0;
1670
- transition: opacity var(--slotted-duration-short) var(--slotted-easing-standard);
1671
- }
1672
-
1673
- [data-ui-progress-indicator][data-shape='segmented'] [data-part-segment][data-pattern='hatch'] {
1674
- background: repeating-linear-gradient(
1675
- -45deg,
1676
- var(--slotted-text-muted, GrayText) 0 2px,
1677
- transparent 2px 5px
1678
- );
1679
- }
1680
-
1681
- [data-ui-progress-indicator][data-shape='segmented'][data-current]
1682
- [data-part-segment]:not([data-current]) {
1683
- opacity: var(--slotted-segmented-bar-dimmed-opacity, 0.35);
1684
- }
1685
-
1686
- [data-ui-progress-indicator][data-shape='segmented'] > [data-part-scale] {
1687
- color: var(--slotted-text-muted, GrayText);
1688
- display: flex;
1689
- font-size: var(--_font-size);
1690
- font-variant-numeric: tabular-nums;
1691
- justify-content: space-between;
1692
- }
1693
-
1694
- @media (prefers-reduced-motion: reduce) {
1695
- [data-ui-progress-indicator][data-shape='segmented'] [data-part-segment] {
1696
- transition: none;
1697
- }
1698
- }
1699
-
1700
- @media (forced-colors: active) {
1701
- [data-ui-progress-indicator][data-shape='segmented'] [data-part-segment] {
1702
- outline: 1px solid CanvasText;
1703
- outline-offset: -1px;
1704
- }
1705
-
1706
- [data-ui-progress-indicator][data-shape='segmented'] [data-part-segment][data-current] {
1707
- background-color: Highlight;
1708
- forced-color-adjust: none;
1709
- }
1710
- }
1711
1641
  }
@@ -1,6 +1,5 @@
1
1
  [
2
2
  "--slotted-border-strong",
3
- "--slotted-border-width-medium",
4
3
  "--slotted-border-width-thin",
5
4
  "--slotted-control-font-family",
6
5
  "--slotted-control-font-size-lg",
@@ -36,8 +35,6 @@
36
35
  "--slotted-progress-indicator-wave-phase",
37
36
  "--slotted-radius-full",
38
37
  "--slotted-radius-none",
39
- "--slotted-segmented-bar-dimmed-opacity",
40
- "--slotted-segmented-bar-gap",
41
38
  "--slotted-space-2",
42
39
  "--slotted-space-3",
43
40
  "--slotted-space-4",
@@ -553,56 +553,6 @@
553
553
  position: absolute;
554
554
  }
555
555
 
556
- /**
557
- * A tile without its circle. The frame and the chosen edge say the choice,
558
- * so the input leaves the layout and keeps its role, its name and its tab
559
- * stop; the ring the tile draws on focus stays the visible focus. The text
560
- * takes the column the circle held.
561
- */
562
- [data-ui-radio-group][data-part-root][data-variant='tile'][data-mark='hidden']
563
- [data-part-control] {
564
- block-size: 1px;
565
- clip-path: inset(50%);
566
- inline-size: 1px;
567
- margin: 0;
568
- overflow: hidden;
569
- position: absolute;
570
- }
571
-
572
- [data-ui-radio-group][data-part-root][data-variant='tile'][data-mark='hidden']
573
- :is([data-part-label], [data-part-description]) {
574
- grid-column: 1 / -1;
575
- }
576
-
577
- /**
578
- * A picture above the label, across the tile. It is a row of its own, so
579
- * the circle, the label and the description move one row down and keep
580
- * their order.
581
- */
582
- [data-ui-radio-group][data-part-root][data-variant='tile'] [data-part-media] {
583
- display: block;
584
- grid-column: 1 / -1;
585
- grid-row: 1;
586
- margin-block-end: var(--slotted-radio-group-tile-media-gap, var(--slotted-space-4, 0.5rem));
587
- }
588
-
589
- [data-ui-radio-group][data-part-root][data-variant='tile'] [data-part-media] > :is(img, svg) {
590
- display: block;
591
- max-inline-size: 100%;
592
- }
593
-
594
- [data-ui-radio-group][data-part-root][data-variant='tile']
595
- [data-part-item]:has(> [data-part-media])
596
- > :is([data-part-control], [data-part-indicator], [data-part-label]) {
597
- grid-row: 2;
598
- }
599
-
600
- [data-ui-radio-group][data-part-root][data-variant='tile']
601
- [data-part-item]:has(> [data-part-media])
602
- > [data-part-description] {
603
- grid-row: 3;
604
- }
605
-
606
556
  /* ── The tile's states ────────────────────────────────────────────────
607
557
  *
608
558
  * Read on the item rather than on the control, because the stretched
@@ -73,7 +73,6 @@
73
73
  "--slotted-radio-group-tile-invalid-border-color",
74
74
  "--slotted-radio-group-tile-invalid-checked-background",
75
75
  "--slotted-radio-group-tile-invalid-checked-border-color",
76
- "--slotted-radio-group-tile-media-gap",
77
76
  "--slotted-radio-group-tile-radius",
78
77
  "--slotted-radio-group-tile-readonly-background",
79
78
  "--slotted-radio-group-tile-readonly-border-color",
@@ -85,7 +84,6 @@
85
84
  "--slotted-selection-size-sm",
86
85
  "--slotted-space-2",
87
86
  "--slotted-space-3",
88
- "--slotted-space-4",
89
87
  "--slotted-surface",
90
88
  "--slotted-target-min",
91
89
  "--slotted-text",
@@ -301,211 +301,4 @@
301
301
  stroke: Canvas;
302
302
  }
303
303
  }
304
-
305
- /**
306
- * ── The position strip ──────────────────────────────────────────────
307
- *
308
- * ┌─ root ─ role="img" ─ data-type="strip" ─────────────────────────┐
309
- * │ start │ ┌─ track ───────────────────────────────────────┐ │ end │
310
- * │ │ │ ░░░░░░ band ░░░░░░ · dot ● value ┆ ref │ │ │
311
- * │ │ └───────────────────────────────────────────────┘ │ │
312
- * └──────────────────────────────────────────────────────────────────┘
313
- *
314
- * Every mark is placed by a share of the track the binding writes as
315
- * --slotted-sparkline-at, so the strip is drawn without measuring. Each end
316
- * is as wide as its text, never cut: rows that state the same extent write
317
- * the same ends in tabular figures, so their tracks line up.
318
- */
319
- [data-ui-sparkline][data-type='strip'] {
320
- --_end: var(--slotted-sparkline-end-size, max-content);
321
- --_dot: var(--_marker);
322
- --_value-dot: calc(var(--_marker) * 1.75);
323
- --_band-color: color-mix(in oklab, var(--_color) 18%, var(--slotted-surface, Canvas));
324
-
325
- align-items: center;
326
- column-gap: var(--slotted-space-3, 0.375rem);
327
- display: inline-grid;
328
- font-size: var(--slotted-font-size-xs, 0.75rem);
329
- font-variant-numeric: tabular-nums;
330
- grid-template-columns: var(--_end) minmax(0, 1fr) var(--_end);
331
- line-height: var(--slotted-line-height-sm, 1.45);
332
- }
333
-
334
- [data-ui-sparkline][data-type='strip'] [data-part-track] {
335
- block-size: var(--_size);
336
- position: relative;
337
- }
338
-
339
- [data-ui-sparkline][data-type='strip'] :is([data-part-start], [data-part-end]) {
340
- color: var(--slotted-text-muted, GrayText);
341
- white-space: nowrap;
342
- }
343
-
344
- [data-ui-sparkline][data-type='strip'] [data-part-start] {
345
- text-align: end;
346
- }
347
-
348
- [data-ui-sparkline][data-type='strip'] [data-part-band] {
349
- background-color: var(--_band-color);
350
- block-size: calc(var(--_size) / 2);
351
- border-radius: var(--slotted-radius-full, 9999px);
352
- inline-size: calc((var(--slotted-sparkline-to, 0) - var(--slotted-sparkline-from, 0)) * 100%);
353
- inset-block-start: calc(var(--_size) / 4);
354
- inset-inline-start: calc(var(--slotted-sparkline-from, 0) * 100%);
355
- position: absolute;
356
- }
357
-
358
- [data-ui-sparkline][data-type='strip']
359
- :is([data-part-dot], [data-part-value], [data-part-reference], [data-part-zero]) {
360
- inset-inline-start: calc(var(--slotted-sparkline-at, 0) * 100%);
361
- position: absolute;
362
- }
363
-
364
- [data-ui-sparkline][data-type='strip'] [data-part-dot] {
365
- background-color: var(--_bar-dim);
366
- block-size: var(--_dot);
367
- border-radius: 50%;
368
- inline-size: var(--_dot);
369
- inset-block-start: calc((var(--_size) - var(--_dot)) / 2);
370
- margin-inline-start: calc(var(--_dot) / -2);
371
- }
372
-
373
- [data-ui-sparkline][data-type='strip'] [data-part-value] {
374
- background-color: var(--_color);
375
- block-size: var(--_value-dot);
376
- border-radius: 50%;
377
- box-shadow: 0 0 0 var(--_ring) var(--_ring-color);
378
- inline-size: var(--_value-dot);
379
- inset-block-start: calc((var(--_size) - var(--_value-dot)) / 2);
380
- margin-inline-start: calc(var(--_value-dot) / -2);
381
- }
382
-
383
- /* The reference is dashed and the zero is solid: one is not data, the other is the origin. */
384
- [data-ui-sparkline][data-type='strip'] :is([data-part-reference], [data-part-zero]) {
385
- block-size: var(--_size);
386
- border-inline-start: var(--slotted-border-width-thin, 1px) solid var(--_reference-color);
387
- inset-block-start: 0;
388
- margin-inline-start: calc(var(--slotted-border-width-thin, 1px) / -2);
389
- }
390
-
391
- [data-ui-sparkline][data-type='strip'] [data-part-reference] {
392
- border-inline-start-style: dashed;
393
- }
394
-
395
- /**
396
- * ── The comparison ──────────────────────────────────────────────────
397
- *
398
- * One row per value: a label column, then a track whose zero, ticks and
399
- * bar are placed by shares the binding writes, so roots that state the
400
- * same domain draw the same axis. The track keeps room on both sides for
401
- * the value written past a bar's end, and rows touch, so the zero line and
402
- * the ticks run unbroken through a root.
403
- */
404
- [data-ui-sparkline][data-type='compare'] {
405
- --_label: var(--slotted-sparkline-label-size, 6rem);
406
- --_room: var(--slotted-sparkline-value-size, 3.5rem);
407
- --_thickness: var(--slotted-sparkline-bar-thickness, var(--slotted-space-5, 0.625rem));
408
- --_texture: repeating-linear-gradient(
409
- -45deg,
410
- var(--_color) 0 var(--slotted-border-width-thin, 1px),
411
- var(--slotted-surface, Canvas) var(--slotted-border-width-thin, 1px) 4px
412
- );
413
-
414
- block-size: auto;
415
- display: grid;
416
- font-size: var(--slotted-font-size-xs, 0.75rem);
417
- font-variant-numeric: tabular-nums;
418
- grid-template-columns: var(--_label) minmax(0, 1fr);
419
- line-height: var(--slotted-line-height-sm, 1.45);
420
- }
421
-
422
- [data-ui-sparkline][data-type='compare'] [data-part-row] {
423
- align-items: center;
424
- display: grid;
425
- grid-column: 1 / -1;
426
- grid-template-columns: subgrid;
427
- }
428
-
429
- [data-ui-sparkline][data-type='compare'] [data-part-label] {
430
- color: var(--slotted-text-muted, GrayText);
431
- overflow: hidden;
432
- padding-inline-end: var(--slotted-space-4, 0.5rem);
433
- text-overflow: ellipsis;
434
- white-space: nowrap;
435
- }
436
-
437
- [data-ui-sparkline][data-type='compare'] [data-part-track] {
438
- block-size: calc(var(--_thickness) + var(--slotted-space-4, 0.5rem));
439
- margin-inline: var(--_room);
440
- position: relative;
441
- }
442
-
443
- [data-ui-sparkline][data-type='compare'] :is([data-part-zero], [data-part-tick]) {
444
- border-inline-start: var(--slotted-border-width-thin, 1px) solid var(--_reference-color);
445
- inset-block: 0;
446
- inset-inline-start: calc(var(--slotted-sparkline-at, 0) * 100%);
447
- margin-inline-start: calc(var(--slotted-border-width-thin, 1px) / -2);
448
- position: absolute;
449
- }
450
-
451
- [data-ui-sparkline][data-type='compare'] [data-part-tick] {
452
- border-inline-start-color: color-mix(in oklab, var(--_reference-color) 40%, transparent);
453
- }
454
-
455
- [data-ui-sparkline][data-type='compare'] [data-part-bar] {
456
- background-color: var(--_color);
457
- block-size: var(--_thickness);
458
- inline-size: calc((var(--slotted-sparkline-to, 0) - var(--slotted-sparkline-from, 0)) * 100%);
459
- inset-block-start: calc(50% - var(--_thickness) / 2);
460
- inset-inline-start: calc(var(--slotted-sparkline-from, 0) * 100%);
461
- position: absolute;
462
- }
463
-
464
- [data-ui-sparkline][data-type='compare'] [data-part-row][data-texture] [data-part-bar] {
465
- background-image: var(--_texture);
466
- box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--_color);
467
- }
468
-
469
- /* The value stands past the bar's far end: after a positive bar, before a negative one. */
470
- [data-ui-sparkline][data-type='compare'] [data-part-value] {
471
- color: var(--slotted-text, CanvasText);
472
- inset-block-start: 50%;
473
- inset-inline-start: calc(
474
- var(--slotted-sparkline-to, 0) * 100% + var(--slotted-space-3, 0.375rem)
475
- );
476
- position: absolute;
477
- translate: 0 -50%;
478
- white-space: nowrap;
479
- }
480
-
481
- [data-ui-sparkline][data-type='compare'] [data-part-row][data-negative] [data-part-value] {
482
- inset-inline-end: calc(
483
- (1 - var(--slotted-sparkline-from, 0)) * 100% + var(--slotted-space-3, 0.375rem)
484
- );
485
- inset-inline-start: auto;
486
- }
487
-
488
- /**
489
- * Under forced colors a mix of two system colors is a color the mode does
490
- * not have: the band and the dots take GrayText, the value and the bars
491
- * CanvasText, and the texture is drawn in CanvasText over Canvas.
492
- */
493
- @media (forced-colors: active) {
494
- [data-ui-sparkline][data-type='strip'] :is([data-part-band], [data-part-dot]) {
495
- background-color: GrayText;
496
- forced-color-adjust: none;
497
- }
498
-
499
- [data-ui-sparkline][data-type='strip'] [data-part-value],
500
- [data-ui-sparkline][data-type='compare'] [data-part-bar] {
501
- background-color: CanvasText;
502
- forced-color-adjust: none;
503
- }
504
-
505
- [data-ui-sparkline][data-type='compare'] [data-part-row][data-texture] [data-part-bar] {
506
- background-color: Canvas;
507
- background-image: repeating-linear-gradient(-45deg, CanvasText 0 1px, Canvas 1px 4px);
508
- box-shadow: inset 0 0 0 1px CanvasText;
509
- }
510
- }
511
304
  }
@@ -14,25 +14,18 @@
14
14
  "--slotted-duration-medium",
15
15
  "--slotted-duration-short",
16
16
  "--slotted-easing-standard",
17
- "--slotted-font-size-xs",
18
- "--slotted-line-height-sm",
19
- "--slotted-radius-full",
20
17
  "--slotted-space-11",
21
18
  "--slotted-space-2",
22
19
  "--slotted-space-3",
23
20
  "--slotted-space-4",
24
- "--slotted-space-5",
25
21
  "--slotted-space-7",
26
22
  "--slotted-space-9",
27
23
  "--slotted-sparkline-area-opacity",
28
24
  "--slotted-sparkline-bar-share",
29
- "--slotted-sparkline-bar-thickness",
30
25
  "--slotted-sparkline-block-size",
31
26
  "--slotted-sparkline-block-size-lg",
32
27
  "--slotted-sparkline-block-size-sm",
33
28
  "--slotted-sparkline-color",
34
- "--slotted-sparkline-end-size",
35
- "--slotted-sparkline-label-size",
36
29
  "--slotted-sparkline-line-width",
37
30
  "--slotted-sparkline-line-width-sm",
38
31
  "--slotted-sparkline-marker-size",
@@ -43,10 +36,7 @@
43
36
  "--slotted-sparkline-ring-color",
44
37
  "--slotted-sparkline-ring-width",
45
38
  "--slotted-sparkline-ring-width-sm",
46
- "--slotted-sparkline-value-size",
47
- "--slotted-surface",
48
39
  "--slotted-surface-raised",
49
- "--slotted-text",
50
40
  "--slotted-text-muted",
51
41
  "--slotted-tone-accent-text",
52
42
  "--slotted-tone-danger-text",
@@ -58,6 +58,8 @@
58
58
  */
59
59
  --_shadow: var(--slotted-tooltip-shadow, var(--slotted-shadow-xs));
60
60
  --_arrow-size: var(--slotted-tooltip-arrow-size, 0.5rem);
61
+ /* How far the clipped arrow reaches over the content along each of its edges. */
62
+ --_arrow-overlap: 0.5px;
61
63
  /* The point, softened to the same degree the surface's own corners are.
62
64
  A 90-degree tip beside a rounded panel reads as a different object. */
63
65
  --_arrow-tip-radius: var(--slotted-tooltip-arrow-tip-radius, var(--slotted-radius-xs, 2px));
@@ -269,6 +271,8 @@
269
271
  --_text: var(--slotted-tooltip-text-raised, var(--slotted-text, #0f172a));
270
272
  --_border-color: var(--slotted-tooltip-border-color, var(--slotted-border-subtle, #e2e8f0));
271
273
  --_border-width: var(--slotted-border-width-thin, 1px);
274
+ /* Along a rotated edge, 1.5 border widths reach one border width deep. */
275
+ --_arrow-overlap: calc(var(--_border-width) * 1.5);
272
276
  }
273
277
 
274
278
  [data-ui-tooltip] > [data-part-content] {
@@ -345,6 +349,12 @@
345
349
  *
346
350
  * `arrowPadding` keeps it clear of the corners, where the content's radius
347
351
  * would leave the base uncovered.
352
+ *
353
+ * ── Why only its outer half is drawn ─────────────────────────────────
354
+ *
355
+ * While both parts fade, the half that lies over the content composites
356
+ * twice and the whole diamond shows through it. The square is clipped to its
357
+ * outer half, with the overlap that covers the content's edge under the base.
348
358
  */
349
359
  [data-ui-tooltip] > [data-part-arrow] {
350
360
  position: absolute;
@@ -363,6 +373,11 @@
363
373
  border-right-width: var(--_border-width);
364
374
  border-bottom-width: var(--_border-width);
365
375
  border-bottom-right-radius: var(--_arrow-tip-radius);
376
+ clip-path: polygon(
377
+ 100% 100%,
378
+ 100% calc(-1 * var(--_arrow-overlap)),
379
+ calc(-1 * var(--_arrow-overlap)) 100%
380
+ );
366
381
  }
367
382
 
368
383
  [data-ui-tooltip][data-side='bottom'] > [data-part-arrow] {
@@ -372,6 +387,11 @@
372
387
  border-top-width: var(--_border-width);
373
388
  border-left-width: var(--_border-width);
374
389
  border-top-left-radius: var(--_arrow-tip-radius);
390
+ clip-path: polygon(
391
+ 0 0,
392
+ calc(100% + var(--_arrow-overlap)) 0,
393
+ 0 calc(100% + var(--_arrow-overlap))
394
+ );
375
395
  }
376
396
 
377
397
  [data-ui-tooltip][data-side='left'] > [data-part-arrow] {
@@ -381,6 +401,11 @@
381
401
  border-top-width: var(--_border-width);
382
402
  border-right-width: var(--_border-width);
383
403
  border-top-right-radius: var(--_arrow-tip-radius);
404
+ clip-path: polygon(
405
+ 100% 0,
406
+ 100% calc(100% + var(--_arrow-overlap)),
407
+ calc(-1 * var(--_arrow-overlap)) 0
408
+ );
384
409
  }
385
410
 
386
411
  [data-ui-tooltip][data-side='right'] > [data-part-arrow] {
@@ -390,5 +415,10 @@
390
415
  border-bottom-width: var(--_border-width);
391
416
  border-left-width: var(--_border-width);
392
417
  border-bottom-left-radius: var(--_arrow-tip-radius);
418
+ clip-path: polygon(
419
+ 0 100%,
420
+ 0 calc(-1 * var(--_arrow-overlap)),
421
+ calc(100% + var(--_arrow-overlap)) 100%
422
+ );
393
423
  }
394
424
  }