@nxgt/material 3.7.1 → 3.7.2
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 +8 -0
- package/dist/components/ui/layout/app-shell/activity-backdrop.css +41 -2
- package/dist/{components-bYGPzyKd.js → components-bsrzppcD.js} +7449 -7447
- 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 +32 -9
- package/docs/previews/data-table-filter-lists-datatable.webp +0 -0
- package/docs/previews/data-table-filter-lists-servertable.webp +0 -0
- package/docs/previews/navigation-layout-accountmenu.webp +0 -0
- package/docs/previews/navigation-layout-appshell-menu-badge.webp +0 -0
- package/docs/previews/navigation-layout-appshell.webp +0 -0
- package/docs/previews/navigation-layout-authcard.webp +0 -0
- package/docs/previews/navigation-layout-background.webp +0 -0
- package/docs/previews/navigation-layout-bottomappbar.webp +0 -0
- package/docs/previews/navigation-layout-breadcrumb.webp +0 -0
- package/docs/previews/navigation-layout-doc-api.webp +0 -0
- package/docs/previews/navigation-layout-doc-blocks.webp +0 -0
- package/docs/previews/navigation-layout-doc.webp +0 -0
- package/docs/previews/navigation-layout-hero.webp +0 -0
- package/docs/previews/navigation-layout-listdetailslayout.webp +0 -0
- package/docs/previews/navigation-layout-pager.webp +0 -0
- package/docs/previews/navigation-layout-panelayout.webp +0 -0
- package/docs/previews/navigation-layout-resizable.webp +0 -0
- package/docs/previews/navigation-layout-responsivegrid.webp +0 -0
- package/docs/previews/navigation-layout-seealso.webp +0 -0
- package/docs/previews/navigation-layout-sidebar.webp +0 -0
- package/docs/previews/navigation-layout-skiplink.webp +0 -0
- package/docs/previews/navigation-layout-stepper.webp +0 -0
- package/docs/previews/navigation-layout-steps.webp +0 -0
- package/docs/previews/navigation-layout-threadlayout.webp +0 -0
- package/docs/previews/navigation-layout-toc.webp +0 -0
- package/docs/previews/navigation-layout-topappbar.webp +0 -0
- package/docs/troubleshooting.md +16 -0
- package/lib/components/ui/layout/app-shell/activity-backdrop.css +41 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @nxgt/material
|
|
2
2
|
|
|
3
|
+
## 3.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1361](https://github.com/softistx/nxgt-material/pull/1361) [`4303761`](https://github.com/softistx/nxgt-material/commit/430376168103b49c0213cac6905b5497ef64b4c6) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Fix the chrome of an `ActivityLayout` with a `backdrop` letting the shapes run behind its text ([#1356](https://github.com/softistx/nxgt-material/issues/1356)). Under `data-backdrop`, the sidebar, the app bar, the breadcrumb, the tabs strip and the lists/tables (`DataTable`, `ServerTable`) take an opaque surface, tuned by `--nxgt-backdrop-chrome` (default `var(--background)`) and `--nxgt-backdrop-surface` (default `var(--card)`). Nothing changes without a `backdrop`.
|
|
8
|
+
|
|
9
|
+
The backdrop layer now sits in the content column, and the frame's gutters take the chrome fill, so no shape is cut at the edges. `DataTable` and `ServerTable` keep their look without a backdrop with an equivalent class (`bg-[color:var(--nxgt-backdrop-fill-surface,color-mix(...80%...))]` in place of `bg-background/80`).
|
|
10
|
+
|
|
3
11
|
## 3.7.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
/* ActivityLayout's `backdrop` prop: a node (a `Background` preset from
|
|
2
|
-
* `@nxgt/material/backgrounds`) drawn behind the
|
|
2
|
+
* `@nxgt/material/backgrounds`) drawn behind the content column instead of the built-in
|
|
3
3
|
* gradient. `data-backdrop` is on the layout's root only while one is given, so
|
|
4
4
|
* without it nothing here matches and the gradient is unchanged.
|
|
5
5
|
*
|
|
6
6
|
* Plain CSS, no inline `style`, in `@layer components` like the rest: an app's
|
|
7
7
|
* utilities still win. The layer itself (`data-slot="activity-layout-backdrop"`)
|
|
8
|
-
* is positioned by classes in activity-layout.tsx
|
|
8
|
+
* is in the content column, positioned by classes in activity-layout.tsx: the
|
|
9
|
+
* frame's padding and gaps take the chrome fill, so the shapes show nowhere
|
|
10
|
+
* else.
|
|
11
|
+
*
|
|
12
|
+
* The shapes show in the free content area only: every surface of the chrome and
|
|
13
|
+
* of the lists is opaque, so none runs behind a text, an icon or a control. Two
|
|
14
|
+
* tokens, set on the layout (or any ancestor), tune them:
|
|
15
|
+
* --nxgt-backdrop-chrome the sidebar, the app bar, the breadcrumb, the tabs
|
|
16
|
+
* strip (default: var(--background))
|
|
17
|
+
* --nxgt-backdrop-surface the lists and tables, their band and rows
|
|
18
|
+
* (default: var(--card))
|
|
19
|
+
* The sidebar, the app bar and the tables take theirs from a class whose
|
|
20
|
+
* fallback is their usual surface, through `--nxgt-backdrop-fill-*`: a utility
|
|
21
|
+
* class outranks any rule in a layer, so a rule here could not set them. */
|
|
9
22
|
@layer components {
|
|
10
23
|
/* The gradient's own tint and blobs give way to the backdrop. */
|
|
11
24
|
[data-slot="activity-layout"][data-backdrop] {
|
|
@@ -21,4 +34,30 @@
|
|
|
21
34
|
width: 100%;
|
|
22
35
|
height: 100%;
|
|
23
36
|
}
|
|
37
|
+
|
|
38
|
+
[data-slot="activity-layout"][data-backdrop] {
|
|
39
|
+
--nxgt-backdrop-fill-chrome: var(--nxgt-backdrop-chrome, var(--background));
|
|
40
|
+
--nxgt-backdrop-fill-surface: var(--nxgt-backdrop-surface, var(--card));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* The breadcrumb trail: a pill under the app bar, as wide as its crumbs. */
|
|
44
|
+
[data-slot="activity-layout"][data-backdrop]
|
|
45
|
+
[data-slot="activity-layout-frame"]
|
|
46
|
+
> *
|
|
47
|
+
> [data-slot="breadcrumb"] {
|
|
48
|
+
width: fit-content;
|
|
49
|
+
max-width: 100%;
|
|
50
|
+
padding-block: 0.25rem;
|
|
51
|
+
padding-inline-end: 0.75rem;
|
|
52
|
+
border-radius: 999px;
|
|
53
|
+
background: var(--nxgt-backdrop-fill-chrome);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Tabs: the strip is a band, its top corners rounded. (The segmented look
|
|
57
|
+
* has its own track.) */
|
|
58
|
+
[data-slot="activity-layout"][data-backdrop] [data-slot="tabs-list"] {
|
|
59
|
+
border-start-start-radius: var(--radius);
|
|
60
|
+
border-start-end-radius: var(--radius);
|
|
61
|
+
background: var(--nxgt-backdrop-fill-chrome);
|
|
62
|
+
}
|
|
24
63
|
}
|