@slotted/styles 0.1.0-beta.21 → 0.1.0-beta.22

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.21",
3
+ "version": "0.1.0-beta.22",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -397,6 +397,19 @@
397
397
  z-index: var(--slotted-z-index-popover, 1100);
398
398
  }
399
399
 
400
+ /* A theme that paints the chart's floating layers as a translucent material blurs the plot under them. */
401
+ [data-ui-chart] :is([data-part-menu], [data-part-help-content], [data-part-tooltip]) {
402
+ -webkit-backdrop-filter: var(--slotted-chart-overlay-backdrop-filter, none);
403
+ backdrop-filter: var(--slotted-chart-overlay-backdrop-filter, none);
404
+ }
405
+
406
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
407
+ [data-ui-chart] :is([data-part-menu], [data-part-help-content], [data-part-tooltip]) {
408
+ -webkit-backdrop-filter: none;
409
+ backdrop-filter: none;
410
+ }
411
+ }
412
+
400
413
  [data-ui-chart] [data-part-menu] {
401
414
  display: grid;
402
415
  min-inline-size: 11rem;
@@ -28,6 +28,7 @@
28
28
  "--slotted-chart-label-size",
29
29
  "--slotted-chart-line-width",
30
30
  "--slotted-chart-marker-size",
31
+ "--slotted-chart-overlay-backdrop-filter",
31
32
  "--slotted-chart-plot-block-size",
32
33
  "--slotted-chart-plot-block-size-lg",
33
34
  "--slotted-chart-plot-block-size-sm",
@@ -1288,6 +1288,16 @@
1288
1288
  padding-block: var(--_padding-block);
1289
1289
  padding-inline: var(--_row-padding-inline-start) var(--_row-padding-inline-end);
1290
1290
  background: var(--slotted-drawer-footer-surface, var(--slotted-surface-sunken, Canvas));
1291
+ /* The body scrolls under the footer; the panel's own filter blurs only what lies behind the panel. */
1292
+ -webkit-backdrop-filter: var(--slotted-drawer-footer-backdrop-filter, none);
1293
+ backdrop-filter: var(--slotted-drawer-footer-backdrop-filter, none);
1294
+ }
1295
+
1296
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
1297
+ [data-ui-drawer] > [data-part-panel] > [data-part-footer] {
1298
+ -webkit-backdrop-filter: none;
1299
+ backdrop-filter: none;
1300
+ }
1291
1301
  }
1292
1302
 
1293
1303
  /**
@@ -22,6 +22,7 @@
22
22
  "--slotted-drawer-extent-md",
23
23
  "--slotted-drawer-extent-sm",
24
24
  "--slotted-drawer-extent-xl",
25
+ "--slotted-drawer-footer-backdrop-filter",
25
26
  "--slotted-drawer-footer-surface",
26
27
  "--slotted-drawer-radius",
27
28
  "--slotted-drawer-radius-expanded",
package/src/page/page.css CHANGED
@@ -133,9 +133,7 @@
133
133
  min-inline-size: 0;
134
134
  padding-block: var(--_footer-padding-block);
135
135
  position: sticky;
136
- transition:
137
- translate var(--_duration) var(--_easing),
138
- opacity var(--_duration) var(--_easing);
136
+ transition: translate var(--_duration) var(--_easing);
139
137
  z-index: var(--slotted-z-index-sticky, 100);
140
138
  }
141
139
  [data-ui-page][data-scroll='self'] > [data-part-footer] {
@@ -143,14 +141,14 @@
143
141
  }
144
142
  [data-ui-page] > [data-part-footer][data-status='entering'],
145
143
  [data-ui-page] > [data-part-footer][data-status='exiting'] {
146
- opacity: 0;
147
144
  translate: 0 100%;
148
145
  }
149
146
 
150
147
  /**
151
148
  * A theme draws the footer as a material with a ground that has alpha and
152
- * `--slotted-page-footer-backdrop-filter`, `none` unless set. The footer's
153
- * own fade keeps the filter drawn: only an ancestor's opacity removes it.
149
+ * `--slotted-page-footer-backdrop-filter`, `none` unless set. The footer
150
+ * moves by its translate alone: Chromium draws no backdrop filter on an
151
+ * element whose opacity is below one.
154
152
  */
155
153
  [data-ui-page] > [data-part-footer] {
156
154
  -webkit-backdrop-filter: var(--slotted-page-footer-backdrop-filter, none);