@vectoriox/iox-ui 5.151.0 → 5.151.1
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
|
@@ -128,11 +128,18 @@ export function contentCapOf(column: unknown, rowValue: (name: string) => string
|
|
|
128
128
|
return width === WIDE_CONTENT_WIDTH ? WIDE_CONTENT_CAP : width;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
/**
|
|
132
|
-
*
|
|
131
|
+
/**
|
|
132
|
+
* The selector a column word's block is declared on, inside `scope` (the builder's token scope — the attribute sits on
|
|
133
|
+
* the scope element itself) or anywhere (the engine's `<body>`).
|
|
134
|
+
*
|
|
135
|
+
* ⚠️ A token scope NESTED under the element carrying the word follows it too (`[word] scope`): the canvas's
|
|
136
|
+
* `<iox-page-component class="iox-token-scope" data-iox-column>` hands its `class` to its own `.iox-page-wrapper`, so the
|
|
137
|
+
* page sits in a second scope that re-declares the site's `content-width` — without this form a page's own word
|
|
138
|
+
* (Page ▸ Design ▸ Content width) moved the attribute and nothing on the canvas (award §0c CW3).
|
|
139
|
+
*/
|
|
133
140
|
export function columnSelector(word: string, scope?: string): string {
|
|
134
141
|
const attr = `[${COLUMN_ATTRIBUTE}="${word}"]`;
|
|
135
|
-
return scope ? `${scope}${attr}, ${scope} ${attr}` : attr;
|
|
142
|
+
return scope ? `${scope}${attr}, ${scope} ${attr}, ${attr} ${scope}` : attr;
|
|
136
143
|
}
|
|
137
144
|
|
|
138
145
|
/**
|