@slotted/styles 0.1.0-beta.12 → 0.1.0-beta.13

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 (33) hide show
  1. package/package.json +1 -1
  2. package/src/action-bar/action-bar.css +10 -0
  3. package/src/action-bar/action-bar.tokens.json +1 -0
  4. package/src/alert/alert.css +11 -13
  5. package/src/chart/chart.css +13 -9
  6. package/src/combobox/combobox.css +34 -16
  7. package/src/combobox/combobox.tokens.json +1 -0
  8. package/src/date-picker/date-picker.css +34 -16
  9. package/src/date-picker/date-picker.tokens.json +1 -0
  10. package/src/drawer/drawer.css +10 -0
  11. package/src/drawer/drawer.tokens.json +1 -0
  12. package/src/entity-picker/entity-picker.css +34 -16
  13. package/src/entity-picker/entity-picker.tokens.json +1 -0
  14. package/src/icon/icon.css +43 -0
  15. package/src/inline-message/inline-message.css +105 -53
  16. package/src/kbd/kbd.css +18 -10
  17. package/src/kbd/kbd.tokens.json +3 -0
  18. package/src/menu/menu.css +34 -11
  19. package/src/menu/menu.tokens.json +1 -0
  20. package/src/multi-select/multi-select.css +24 -16
  21. package/src/popover/popover.css +34 -13
  22. package/src/popover/popover.tokens.json +1 -0
  23. package/src/section/section.css +14 -2
  24. package/src/section/section.tokens.json +1 -0
  25. package/src/select/select.css +34 -16
  26. package/src/select/select.tokens.json +1 -0
  27. package/src/status-indicator/status-indicator.css +84 -59
  28. package/src/status-indicator/status-indicator.tokens.json +0 -3
  29. package/src/table-of-contents/table-of-contents.css +6 -2
  30. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  31. package/src/toast/toast.css +7 -8
  32. package/src/tooltip/tooltip.css +34 -13
  33. package/src/tooltip/tooltip.tokens.json +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slotted/styles",
3
- "version": "0.1.0-beta.12",
3
+ "version": "0.1.0-beta.13",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -103,6 +103,16 @@
103
103
  background-color: var(--slotted-action-bar-background, var(--slotted-surface, Canvas));
104
104
  border-block-start: var(--slotted-border-width-thin, 1px) solid
105
105
  var(--slotted-action-bar-border-color, var(--slotted-border-subtle, ButtonBorder));
106
+ /* A theme that paints this surface as a translucent material blurs what moves behind it. */
107
+ -webkit-backdrop-filter: var(--slotted-action-bar-backdrop-filter, none);
108
+ backdrop-filter: var(--slotted-action-bar-backdrop-filter, none);
109
+ }
110
+
111
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
112
+ [data-ui-action-bar][data-variant='raised'] {
113
+ -webkit-backdrop-filter: none;
114
+ backdrop-filter: none;
115
+ }
106
116
  }
107
117
 
108
118
  /* ── Sticky ───────────────────────────────────────────────────────────── */
@@ -1,4 +1,5 @@
1
1
  [
2
+ "--slotted-action-bar-backdrop-filter",
2
3
  "--slotted-action-bar-background",
3
4
  "--slotted-action-bar-border-color",
4
5
  "--slotted-action-bar-gap",
@@ -252,7 +252,7 @@
252
252
  *
253
253
  * The mark is what satisfies WCAG 2.2 1.4.1. Under forced colours every tone
254
254
  * ground becomes one system colour and the five boxes are identical; the
255
- * circle, the triangle and the crossed circle are what is left.
255
+ * circle, the diamond and the symbols cut out of them are what is left.
256
256
  */
257
257
 
258
258
  [data-ui-alert][data-part-root][data-tone='accent'] {
@@ -411,18 +411,16 @@
411
411
 
412
412
  /* ── The mark ─────────────────────────────────────────────────────────
413
413
  *
414
- * A filled disc on the title's first line, with the tone's symbol cut out
415
- * of it: the binding's `Glyph` in its `solid` form, which fills the glyph's
416
- * ring and cuts the symbol out of the fill with an SVG mask, so the ground
417
- * shows through the symbol on every variant. Every tone's glyph is a
418
- * circle, so every mark is the same round silhouette on the same centre;
414
+ * A filled silhouette on the title's first line, with the tone's symbol cut
415
+ * out of it: the binding's `Glyph` drawing a hand-drawn status mark, the
416
+ * symbol cut out of the fill with an SVG mask, so the ground shows through
417
+ * the symbol on every variant. Every silhouette — the circle, the warning's
418
+ * diamond — is symmetric on both axes, so every mark has the same centre;
419
419
  * the symbol inside is what tells the five apart when colour is gone. A
420
420
  * triangle was the one mark whose visual centre is not its box's centre,
421
- * and it did not sit on the line the way the four circles did.
421
+ * and it did not sit on the line the way the circles did.
422
422
  *
423
- * The glyph's filled ring reaches radius 11 of its 24-unit box, so the box
424
- * is 12/11 of the mark and the disc is the mark's own size; the box
425
- * overhangs the slot by half a unit on each side, centred.
423
+ * The silhouette fills its box edge to edge, so the box is the mark.
426
424
  *
427
425
  * The disc is painted in `currentcolor`: the tone's text role on `soft` and
428
426
  * `outline`, which the theme measures against those grounds, and `on-solid`
@@ -446,7 +444,7 @@
446
444
  * place on the first line, centred in it.
447
445
  */
448
446
  [data-ui-alert] > [data-part-icon] {
449
- --slotted-icon-size: calc(var(--_mark-size) * 12 / 11);
447
+ --slotted-icon-size: var(--_mark-size);
450
448
 
451
449
  align-items: center;
452
450
  align-self: baseline;
@@ -736,8 +734,8 @@
736
734
  *
737
735
  * The mark needs no rule: its glyph fills with `currentcolor`, which the
738
736
  * system has already forced, and it keeps its silhouette, which is the whole
739
- * reason a glyph is drawn per tone — a triangle and a crossed circle are
740
- * still different from each other when neither of them is coloured.
737
+ * reason a glyph is drawn per tone — a diamond and a circle are still
738
+ * different from each other when neither of them is coloured.
741
739
  */
742
740
  @media (forced-colors: active) {
743
741
  /**
@@ -169,6 +169,17 @@
169
169
  composes — `result-state` in an empty or failed plot — and a bare
170
170
  descendant selector restyled theirs. */
171
171
  [data-ui-chart] > [data-part-header] {
172
+ /* The controls sit on the title's first line and hang past their box by
173
+ the difference, so the row does not grow the header. The actions and
174
+ the toolbar share it, which is what puts them on one centre. */
175
+ --_control-bleed: calc(
176
+ (
177
+ var(--slotted-font-size-lg, 1rem) * var(--slotted-line-height-lg, 1.5) -
178
+ var(--slotted-control-height-sm, 1.75rem)
179
+ ) /
180
+ 2
181
+ );
182
+
172
183
  align-items: start;
173
184
  display: flex;
174
185
  gap: var(--slotted-space-4, 0.5rem);
@@ -242,6 +253,7 @@
242
253
  display: flex;
243
254
  flex: none;
244
255
  gap: var(--slotted-space-2, 0.25rem);
256
+ margin-block: var(--_control-bleed);
245
257
  }
246
258
 
247
259
  /**
@@ -258,15 +270,7 @@
258
270
  display: flex;
259
271
  flex: none;
260
272
  gap: var(--slotted-space-1, 0.125rem);
261
- /* The buttons sit on the title's first line and hang past their box by
262
- the difference, so the row does not grow the header. */
263
- margin-block: calc(
264
- (
265
- var(--slotted-font-size-lg, 1rem) * var(--slotted-line-height-lg, 1.5) -
266
- var(--slotted-control-height-sm, 1.75rem)
267
- ) /
268
- 2
269
- );
273
+ margin-block: var(--_control-bleed);
270
274
  transition: opacity var(--slotted-duration-short) var(--slotted-easing-standard);
271
275
  }
272
276
 
@@ -581,7 +581,6 @@
581
581
  box-sizing: border-box;
582
582
  pointer-events: none;
583
583
 
584
- opacity: 0;
585
584
  /**
586
585
  * R7: the layer arrives along the axis it opens on — from one space step
587
586
  * above its place when it opens downward, from one step below when it
@@ -591,9 +590,7 @@
591
590
  */
592
591
  --_enter-distance: var(--slotted-space-2, 0.25rem);
593
592
  translate: 0 calc(-1 * var(--_enter-distance));
594
- transition:
595
- opacity var(--slotted-duration-short) var(--slotted-easing-exit),
596
- translate var(--slotted-duration-short) var(--slotted-easing-exit);
593
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
597
594
  }
598
595
 
599
596
  [data-ui-combobox][data-part-positioner][data-side='top'] {
@@ -615,7 +612,6 @@
615
612
  * leaves from wherever the layer is, on the closed rule's durations.
616
613
  */
617
614
  [data-ui-combobox][data-part-positioner][data-open] {
618
- opacity: 1;
619
615
  translate: 0 0;
620
616
  transition: none;
621
617
  }
@@ -634,23 +630,14 @@
634
630
  animation-name: slotted-combobox-enter-up;
635
631
  }
636
632
 
637
- [data-ui-combobox][data-part-positioner][data-open][data-positioned]:is(
638
- [data-side='left'],
639
- [data-side='right']
640
- ) {
641
- animation-name: slotted-combobox-fade;
642
- }
643
-
644
633
  @keyframes slotted-combobox-enter-down {
645
634
  from {
646
- opacity: 0;
647
635
  translate: 0 calc(-1 * var(--_enter-distance));
648
636
  }
649
637
  }
650
638
 
651
639
  @keyframes slotted-combobox-enter-up {
652
640
  from {
653
- opacity: 0;
654
641
  translate: 0 var(--_enter-distance);
655
642
  }
656
643
  }
@@ -661,6 +648,27 @@
661
648
  }
662
649
  }
663
650
 
651
+ /**
652
+ * The fade belongs to the part that paints the surface, and the layer only
653
+ * moves. In Chromium an ancestor with `opacity` below one is the Backdrop Root
654
+ * of what it holds, so a `backdrop-filter` on the content blurs nothing until
655
+ * the layer is opaque and then appears at once. The content's own opacity
656
+ * leaves its own filter drawn on every frame of the motion.
657
+ */
658
+ [data-ui-combobox][data-part-positioner] > [data-part-content] {
659
+ opacity: 0;
660
+ transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
661
+ }
662
+
663
+ [data-ui-combobox][data-part-positioner][data-open] > [data-part-content] {
664
+ opacity: 1;
665
+ transition: none;
666
+ }
667
+
668
+ [data-ui-combobox][data-part-positioner][data-open][data-positioned] > [data-part-content] {
669
+ animation: slotted-combobox-fade var(--slotted-duration-medium) var(--slotted-easing-enter);
670
+ }
671
+
664
672
  /* Stillness keeps the fade and drops the movement (R7). */
665
673
  @media (prefers-reduced-motion: reduce) {
666
674
  [data-ui-combobox][data-part-positioner],
@@ -668,14 +676,14 @@
668
676
  [data-ui-combobox][data-part-positioner][data-side='left'],
669
677
  [data-ui-combobox][data-part-positioner][data-side='right'] {
670
678
  translate: 0 0;
671
- transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
679
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
672
680
  }
673
681
 
674
682
  [data-ui-combobox][data-part-positioner][data-open][data-positioned],
675
683
  [data-ui-combobox][data-part-positioner][data-open][data-positioned][data-side='top'],
676
684
  [data-ui-combobox][data-part-positioner][data-open][data-positioned][data-side='left'],
677
685
  [data-ui-combobox][data-part-positioner][data-open][data-positioned][data-side='right'] {
678
- animation-name: slotted-combobox-fade;
686
+ animation-name: none;
679
687
  }
680
688
  }
681
689
 
@@ -733,6 +741,16 @@
733
741
  padding-block: var(--_inset-block);
734
742
  padding-inline: var(--_inset-inline);
735
743
  pointer-events: auto;
744
+ /* A theme that paints this surface as a translucent material blurs what moves behind it. */
745
+ -webkit-backdrop-filter: var(--slotted-combobox-content-backdrop-filter, none);
746
+ backdrop-filter: var(--slotted-combobox-content-backdrop-filter, none);
747
+ }
748
+
749
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
750
+ [data-ui-combobox] > [data-part-content] {
751
+ -webkit-backdrop-filter: none;
752
+ backdrop-filter: none;
753
+ }
736
754
  }
737
755
 
738
756
  [data-ui-combobox] > [data-part-content]:focus-visible {
@@ -12,6 +12,7 @@
12
12
  "--slotted-combobox-color",
13
13
  "--slotted-combobox-completion-background",
14
14
  "--slotted-combobox-completion-color",
15
+ "--slotted-combobox-content-backdrop-filter",
15
16
  "--slotted-combobox-content-border-color",
16
17
  "--slotted-combobox-content-padding-block",
17
18
  "--slotted-combobox-content-padding-inline",
@@ -200,11 +200,8 @@
200
200
  positioner named as origin moved the far edge and read as an entrance
201
201
  from the side. */
202
202
  --_enter-distance: var(--slotted-space-2, 0.25rem);
203
- opacity: 0;
204
203
  translate: 0 calc(-1 * var(--_enter-distance));
205
- transition:
206
- opacity var(--slotted-duration-short) var(--slotted-easing-exit),
207
- translate var(--slotted-duration-short) var(--slotted-easing-exit);
204
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
208
205
  }
209
206
 
210
207
  [data-ui-date-picker][data-part-positioner][data-side='top'] {
@@ -217,7 +214,6 @@
217
214
  }
218
215
 
219
216
  [data-ui-date-picker][data-part-positioner][data-open] {
220
- opacity: 1;
221
217
  translate: 0 0;
222
218
  transition: none;
223
219
  }
@@ -241,23 +237,14 @@
241
237
  animation-name: slotted-date-picker-enter-up;
242
238
  }
243
239
 
244
- [data-ui-date-picker][data-part-positioner][data-open][data-positioned]:is(
245
- [data-side='left'],
246
- [data-side='right']
247
- ) {
248
- animation-name: slotted-date-picker-fade;
249
- }
250
-
251
240
  @keyframes slotted-date-picker-enter-down {
252
241
  from {
253
- opacity: 0;
254
242
  translate: 0 calc(-1 * var(--_enter-distance));
255
243
  }
256
244
  }
257
245
 
258
246
  @keyframes slotted-date-picker-enter-up {
259
247
  from {
260
- opacity: 0;
261
248
  translate: 0 var(--_enter-distance);
262
249
  }
263
250
  }
@@ -268,6 +255,27 @@
268
255
  }
269
256
  }
270
257
 
258
+ /**
259
+ * The fade belongs to the part that paints the surface, and the layer only
260
+ * moves. In Chromium an ancestor with `opacity` below one is the Backdrop Root
261
+ * of what it holds, so a `backdrop-filter` on the content blurs nothing until
262
+ * the layer is opaque and then appears at once. The content's own opacity
263
+ * leaves its own filter drawn on every frame of the motion.
264
+ */
265
+ [data-ui-date-picker][data-part-positioner] > [data-part-content] {
266
+ opacity: 0;
267
+ transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
268
+ }
269
+
270
+ [data-ui-date-picker][data-part-positioner][data-open] > [data-part-content] {
271
+ opacity: 1;
272
+ transition: none;
273
+ }
274
+
275
+ [data-ui-date-picker][data-part-positioner][data-open][data-positioned] > [data-part-content] {
276
+ animation: slotted-date-picker-fade var(--slotted-duration-medium) var(--slotted-easing-enter);
277
+ }
278
+
271
279
  /* Stillness keeps the fade and drops the movement. */
272
280
  @media (prefers-reduced-motion: reduce) {
273
281
  [data-ui-date-picker][data-part-positioner],
@@ -275,14 +283,14 @@
275
283
  [data-ui-date-picker][data-part-positioner][data-side='left'],
276
284
  [data-ui-date-picker][data-part-positioner][data-side='right'] {
277
285
  translate: 0 0;
278
- transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
286
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
279
287
  }
280
288
 
281
289
  [data-ui-date-picker][data-part-positioner][data-open][data-positioned],
282
290
  [data-ui-date-picker][data-part-positioner][data-open][data-positioned][data-side='top'],
283
291
  [data-ui-date-picker][data-part-positioner][data-open][data-positioned][data-side='left'],
284
292
  [data-ui-date-picker][data-part-positioner][data-open][data-positioned][data-side='right'] {
285
- animation-name: slotted-date-picker-fade;
293
+ animation-name: none;
286
294
  }
287
295
  }
288
296
 
@@ -324,6 +332,16 @@
324
332
  padding: var(--slotted-date-picker-content-padding, var(--slotted-space-5, 0.75rem));
325
333
  /* The layer above gave up the pointer; the surface takes it back. */
326
334
  pointer-events: auto;
335
+ /* A theme that paints this surface as a translucent material blurs what moves behind it. */
336
+ -webkit-backdrop-filter: var(--slotted-date-picker-content-backdrop-filter, none);
337
+ backdrop-filter: var(--slotted-date-picker-content-backdrop-filter, none);
338
+ }
339
+
340
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
341
+ [data-ui-date-picker] [data-part-content] {
342
+ -webkit-backdrop-filter: none;
343
+ backdrop-filter: none;
344
+ }
327
345
  }
328
346
 
329
347
  /* The shortcuts take a column of their own only when there are any. */
@@ -11,6 +11,7 @@
11
11
  "--slotted-control-radius",
12
12
  "--slotted-control-transition-duration",
13
13
  "--slotted-control-transition-easing",
14
+ "--slotted-date-picker-content-backdrop-filter",
14
15
  "--slotted-date-picker-content-border-color",
15
16
  "--slotted-date-picker-content-color",
16
17
  "--slotted-date-picker-content-padding",
@@ -393,6 +393,16 @@
393
393
  border-width: 0;
394
394
  /* So the leading corners clip the row that scrolls under them. */
395
395
  overflow: hidden;
396
+ /* A theme that paints this surface as a translucent material blurs what moves behind it. */
397
+ -webkit-backdrop-filter: var(--slotted-drawer-backdrop-filter, none);
398
+ backdrop-filter: var(--slotted-drawer-backdrop-filter, none);
399
+ }
400
+
401
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
402
+ [data-ui-drawer] > [data-part-panel] {
403
+ -webkit-backdrop-filter: none;
404
+ backdrop-filter: none;
405
+ }
396
406
  }
397
407
 
398
408
  /**
@@ -9,6 +9,7 @@
9
9
  "--slotted-control-radius",
10
10
  "--slotted-control-transition-duration",
11
11
  "--slotted-control-transition-easing",
12
+ "--slotted-drawer-backdrop-filter",
12
13
  "--slotted-drawer-body-color",
13
14
  "--slotted-drawer-border-color",
14
15
  "--slotted-drawer-close-active-background",
@@ -792,12 +792,9 @@
792
792
  box-sizing: border-box;
793
793
  inset-block-start: 0;
794
794
  isolation: isolate;
795
- opacity: 0;
796
795
  pointer-events: none;
797
796
  position: absolute;
798
- transition:
799
- opacity var(--slotted-duration-short) var(--slotted-easing-exit),
800
- translate var(--slotted-duration-short) var(--slotted-easing-exit);
797
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
801
798
  translate: 0 calc(-1 * var(--_enter-distance));
802
799
  z-index: calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));
803
800
  }
@@ -811,7 +808,6 @@
811
808
  }
812
809
 
813
810
  [data-ui-entity-picker][data-part-positioner][data-open] {
814
- opacity: 1;
815
811
  transition: none;
816
812
  translate: 0 0;
817
813
  }
@@ -825,23 +821,14 @@
825
821
  animation-name: slotted-entity-picker-enter-up;
826
822
  }
827
823
 
828
- [data-ui-entity-picker][data-part-positioner][data-open][data-positioned]:is(
829
- [data-side='left'],
830
- [data-side='right']
831
- ) {
832
- animation-name: slotted-entity-picker-fade;
833
- }
834
-
835
824
  @keyframes slotted-entity-picker-enter-down {
836
825
  from {
837
- opacity: 0;
838
826
  translate: 0 calc(-1 * var(--_enter-distance));
839
827
  }
840
828
  }
841
829
 
842
830
  @keyframes slotted-entity-picker-enter-up {
843
831
  from {
844
- opacity: 0;
845
832
  translate: 0 var(--_enter-distance);
846
833
  }
847
834
  }
@@ -852,12 +839,33 @@
852
839
  }
853
840
  }
854
841
 
842
+ /**
843
+ * The fade belongs to the part that paints the surface, and the layer only
844
+ * moves. In Chromium an ancestor with `opacity` below one is the Backdrop Root
845
+ * of what it holds, so a `backdrop-filter` on the content blurs nothing until
846
+ * the layer is opaque and then appears at once. The content's own opacity
847
+ * leaves its own filter drawn on every frame of the motion.
848
+ */
849
+ [data-ui-entity-picker][data-part-positioner] > [data-part-content] {
850
+ opacity: 0;
851
+ transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
852
+ }
853
+
854
+ [data-ui-entity-picker][data-part-positioner][data-open] > [data-part-content] {
855
+ opacity: 1;
856
+ transition: none;
857
+ }
858
+
859
+ [data-ui-entity-picker][data-part-positioner][data-open][data-positioned] > [data-part-content] {
860
+ animation: slotted-entity-picker-fade var(--slotted-duration-medium) var(--slotted-easing-enter);
861
+ }
862
+
855
863
  @media (prefers-reduced-motion: reduce) {
856
864
  [data-ui-entity-picker][data-part-positioner],
857
865
  [data-ui-entity-picker][data-part-positioner][data-side='top'],
858
866
  [data-ui-entity-picker][data-part-positioner][data-side='left'],
859
867
  [data-ui-entity-picker][data-part-positioner][data-side='right'] {
860
- transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
868
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
861
869
  translate: 0 0;
862
870
  }
863
871
 
@@ -865,7 +873,7 @@
865
873
  [data-ui-entity-picker][data-part-positioner][data-open][data-positioned][data-side='top'],
866
874
  [data-ui-entity-picker][data-part-positioner][data-open][data-positioned][data-side='left'],
867
875
  [data-ui-entity-picker][data-part-positioner][data-open][data-positioned][data-side='right'] {
868
- animation-name: slotted-entity-picker-fade;
876
+ animation-name: none;
869
877
  }
870
878
  }
871
879
 
@@ -934,6 +942,16 @@
934
942
  padding-block: var(--_inset-block);
935
943
  padding-inline: var(--_inset-inline);
936
944
  pointer-events: auto;
945
+ /* A theme that paints this surface as a translucent material blurs what moves behind it. */
946
+ -webkit-backdrop-filter: var(--slotted-entity-picker-content-backdrop-filter, none);
947
+ backdrop-filter: var(--slotted-entity-picker-content-backdrop-filter, none);
948
+ }
949
+
950
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
951
+ [data-ui-entity-picker] > [data-part-content] {
952
+ -webkit-backdrop-filter: none;
953
+ backdrop-filter: none;
954
+ }
937
955
  }
938
956
 
939
957
  /**
@@ -49,6 +49,7 @@
49
49
  "--slotted-entity-picker-background",
50
50
  "--slotted-entity-picker-border-color",
51
51
  "--slotted-entity-picker-color",
52
+ "--slotted-entity-picker-content-backdrop-filter",
52
53
  "--slotted-entity-picker-content-border-color",
53
54
  "--slotted-entity-picker-content-radius",
54
55
  "--slotted-entity-picker-content-shadow",
package/src/icon/icon.css CHANGED
@@ -72,6 +72,49 @@
72
72
  * the type it sits in, because sixteen pixels inside a display heading is
73
73
  * not an icon.
74
74
  */
75
+ /**
76
+ * A status mark is drawn on three grids (`@slotted/core/glyph`), and the box
77
+ * shows the one it is sized for, so every cut lands on whole pixels. The box
78
+ * is a size container for that question alone: its size is its own and never
79
+ * its content's. Under 1dppx — a page zoomed out — the 12-unit drawing is
80
+ * the heaviest per pixel, and the one that stays legible.
81
+ */
82
+ [data-ui-icon]:has(> svg > svg[data-grid]) {
83
+ container-type: size;
84
+ }
85
+
86
+ [data-ui-icon] svg[data-grid] {
87
+ display: none;
88
+ }
89
+
90
+ @container (width < 13px) {
91
+ [data-ui-icon] svg[data-grid='12'] {
92
+ display: block;
93
+ }
94
+ }
95
+
96
+ @container (13px <= width < 15px) {
97
+ [data-ui-icon] svg[data-grid='14'] {
98
+ display: block;
99
+ }
100
+ }
101
+
102
+ @container (width >= 15px) {
103
+ [data-ui-icon] svg[data-grid='16'] {
104
+ display: block;
105
+ }
106
+ }
107
+
108
+ @media (max-resolution: 0.99dppx) {
109
+ [data-ui-icon] svg[data-grid] {
110
+ display: none;
111
+ }
112
+
113
+ [data-ui-icon] svg[data-grid='12'] {
114
+ display: block;
115
+ }
116
+ }
117
+
75
118
  [data-ui-icon][data-size='text'] {
76
119
  --slotted-icon-size: 1em;
77
120
  }