fix(cms): separate leaf form groups with shared surfaces
DC CMS qualification / qualify (push) Successful in 2m33s

This commit is contained in:
DCCONSTRUCTIONS
2026-11-05 13:16:35 +03:00
parent 10c2d6a70d
commit aff551e4d4
3 changed files with 8 additions and 3 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -1
View File
@@ -91,8 +91,11 @@ Verified: dark/light, accent change and reload persistence, reset to white,
nested palette Escape, 390px modal, plus/template picker, pointer drag/reorder
(discarded), switching independent sites, and the shared component/type checks.
Collection entries and JSON disclosures consume `GlassSurface tone="soft"`
Form groups, collection entries and JSON disclosures consume `GlassSurface tone="soft"`
with its shared padding/radius/material. The former app-local translucent
item background accumulated across nested cards and converged with TextField
fill; using the canonical opaque nested surface preserves visible field zones
in both themes without adding borders or changing input tokens.
Form groups outside collections use the same nested surface so light-theme
white inputs remain separated from white outer panels; collections already
provide that surface and do not receive a second wrapper or double padding.
+3 -1
View File
@@ -137,8 +137,10 @@ function fields() {
function cards() {
// Use the library's opaque nested surface: translucent local layers made
// collection backgrounds converge with the field material at greater depth.
for (const region of all(".collection-item-card,.json-details")) {
for (const region of all(".collection-item-card,.json-details,.field-grid,.group-grid")) {
if (region.dataset.dsSurface) continue;
// A collection already owns this surface; avoid stacking or double padding.
if (region.matches(".field-grid,.group-grid") && (region.closest(".collection-item-card") || region.querySelector(".collection-field"))) continue;
const surface = clone("nestedSurface");
for (const attribute of surface.attributes) {
if (attribute.name === "class") addClass(region, attribute.value);