@nxgt/material 3.7.3 → 3.7.4
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/CHANGELOG.md +6 -0
- package/dist/components/ui/layout/app-shell/activity-backdrop.css +54 -8
- package/dist/{components-DslV-TzK.js → components-DD7_NI6U.js} +14637 -14637
- package/dist/components.js +1 -1
- package/dist/main.js +1 -1
- package/dist/material.css +1 -1
- package/docs/components/navigation-and-layout.md +1 -1
- package/docs/guides/app-shell.md +24 -16
- package/docs/troubleshooting.md +5 -10
- package/lib/components/ui/layout/app-shell/activity-backdrop.css +54 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @nxgt/material
|
|
2
2
|
|
|
3
|
+
## 3.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1386](https://github.com/softistx/nxgt-material/pull/1386) [`ae0bd15`](https://github.com/softistx/nxgt-material/commit/ae0bd15881ad0d4e81bedb314e50bb3ac7d732e7) Thanks [@SteveGT96](https://github.com/SteveGT96)! - `ActivityLayout` with a `backdrop`: the chrome is now lightly translucent and frosted instead of opaque, so a shape shows faintly behind the app bar, the breadcrumb and the tabs strip. The app bar is 80% of `--background`; the sidebar, the breadcrumb and the tabs strip are 87% (the least that keeps their text at WCAG AA over the darkest shape in the light theme); all sit over a 6px blur. Under `prefers-reduced-transparency: reduce`, or where `backdrop-filter` is unsupported, the blur is off and the fill is 92%. `--nxgt-backdrop-chrome` still overrides the fill, `--nxgt-backdrop-surface` and the lists, tables and cards stay opaque, and nothing changes without a `backdrop`.
|
|
8
|
+
|
|
3
9
|
## 3.7.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -9,13 +9,18 @@
|
|
|
9
9
|
* frame's padding and gaps take the chrome fill, so the shapes show nowhere
|
|
10
10
|
* else.
|
|
11
11
|
*
|
|
12
|
-
* The
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* The chrome is lightly translucent and frosted: about 80% of the background
|
|
13
|
+
* colour (--nxgt-backdrop-chrome-alpha, the app bar) or 87% (--nxgt-backdrop-nav-alpha,
|
|
14
|
+
* the sidebar, the breadcrumb and the tabs strip, whose text needs it to keep
|
|
15
|
+
* WCAG AA over the darkest shape in the light theme) over a 6px blur
|
|
16
|
+
* (--nxgt-backdrop-blur), so a shape shows faintly behind them, too blurred to
|
|
17
|
+
* compete with a text. The lists, tables and cards stay opaque. Under `prefers-reduced-transparency:
|
|
18
|
+
* reduce`, or where `backdrop-filter` is unsupported, the blur is off and the
|
|
19
|
+
* fill is 92% (both). Two tokens, set on the layout (or any ancestor), tune them:
|
|
15
20
|
* --nxgt-backdrop-chrome the sidebar, the app bar, the breadcrumb, the tabs
|
|
16
|
-
* strip (default:
|
|
21
|
+
* strip (default: the background at 80% / 92%)
|
|
17
22
|
* --nxgt-backdrop-surface the lists and tables, their band and rows
|
|
18
|
-
* (default: var(--card))
|
|
23
|
+
* (default: var(--card), opaque)
|
|
19
24
|
* The sidebar, the app bar and the tables take theirs from a class whose
|
|
20
25
|
* fallback is their usual surface, through `--nxgt-backdrop-fill-*`: a utility
|
|
21
26
|
* class outranks any rule in a layer, so a rule here could not set them. */
|
|
@@ -57,10 +62,47 @@
|
|
|
57
62
|
}
|
|
58
63
|
|
|
59
64
|
[data-slot="activity-layout"][data-backdrop] {
|
|
60
|
-
--nxgt-backdrop-
|
|
65
|
+
--nxgt-backdrop-chrome-alpha: 80%;
|
|
66
|
+
--nxgt-backdrop-nav-alpha: 87%;
|
|
67
|
+
--nxgt-backdrop-blur: 6px;
|
|
68
|
+
--nxgt-backdrop-fill-chrome: var(
|
|
69
|
+
--nxgt-backdrop-chrome,
|
|
70
|
+
color-mix(
|
|
71
|
+
in oklab,
|
|
72
|
+
var(--background) var(--nxgt-backdrop-chrome-alpha),
|
|
73
|
+
transparent
|
|
74
|
+
)
|
|
75
|
+
);
|
|
76
|
+
--nxgt-backdrop-fill-nav: var(
|
|
77
|
+
--nxgt-backdrop-chrome,
|
|
78
|
+
color-mix(
|
|
79
|
+
in oklab,
|
|
80
|
+
var(--background) var(--nxgt-backdrop-nav-alpha),
|
|
81
|
+
transparent
|
|
82
|
+
)
|
|
83
|
+
);
|
|
61
84
|
--nxgt-backdrop-fill-surface: var(--nxgt-backdrop-surface, var(--card));
|
|
62
85
|
}
|
|
63
86
|
|
|
87
|
+
/* No blur to lean on: a more opaque fill instead. */
|
|
88
|
+
@supports not (
|
|
89
|
+
(backdrop-filter: blur(1px)) or
|
|
90
|
+
(-webkit-backdrop-filter: blur(1px))
|
|
91
|
+
) {
|
|
92
|
+
[data-slot="activity-layout"][data-backdrop] {
|
|
93
|
+
--nxgt-backdrop-chrome-alpha: 92%;
|
|
94
|
+
--nxgt-backdrop-nav-alpha: 92%;
|
|
95
|
+
--nxgt-backdrop-blur: 0px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
99
|
+
[data-slot="activity-layout"][data-backdrop] {
|
|
100
|
+
--nxgt-backdrop-chrome-alpha: 92%;
|
|
101
|
+
--nxgt-backdrop-nav-alpha: 92%;
|
|
102
|
+
--nxgt-backdrop-blur: 0px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
64
106
|
/* The breadcrumb trail: a pill under the app bar, as wide as its crumbs. */
|
|
65
107
|
[data-slot="activity-layout"][data-backdrop]
|
|
66
108
|
[data-slot="activity-layout-frame"]
|
|
@@ -71,7 +113,9 @@
|
|
|
71
113
|
padding-block: 0.25rem;
|
|
72
114
|
padding-inline-end: 0.75rem;
|
|
73
115
|
border-radius: 999px;
|
|
74
|
-
background: var(--nxgt-backdrop-fill-
|
|
116
|
+
background: var(--nxgt-backdrop-fill-nav);
|
|
117
|
+
-webkit-backdrop-filter: blur(var(--nxgt-backdrop-blur));
|
|
118
|
+
backdrop-filter: blur(var(--nxgt-backdrop-blur));
|
|
75
119
|
}
|
|
76
120
|
|
|
77
121
|
/* Tabs: the strip is a band, its top corners rounded. (The segmented look
|
|
@@ -79,6 +123,8 @@
|
|
|
79
123
|
[data-slot="activity-layout"][data-backdrop] [data-slot="tabs-list"] {
|
|
80
124
|
border-start-start-radius: var(--radius);
|
|
81
125
|
border-start-end-radius: var(--radius);
|
|
82
|
-
background: var(--nxgt-backdrop-fill-
|
|
126
|
+
background: var(--nxgt-backdrop-fill-nav);
|
|
127
|
+
-webkit-backdrop-filter: blur(var(--nxgt-backdrop-blur));
|
|
128
|
+
backdrop-filter: blur(var(--nxgt-backdrop-blur));
|
|
83
129
|
}
|
|
84
130
|
}
|