@salesforcedevs/docs-components 1.3.106-alpha.0 → 1.3.106-alpha.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
|
@@ -196,19 +196,37 @@ export default class ContentLayout extends LightningElement {
|
|
|
196
196
|
const contextNavEl = document.querySelector(
|
|
197
197
|
"hgf-c360contextnav"
|
|
198
198
|
) as HTMLElement;
|
|
199
|
-
const docHeaderEl = document.querySelector(
|
|
199
|
+
const docHeaderEl = document.querySelector(
|
|
200
|
+
".sticky-doc-header"
|
|
201
|
+
) as HTMLElement;
|
|
202
|
+
const docPhaseEl = document.querySelector("doc-phase") as HTMLElement;
|
|
200
203
|
|
|
201
204
|
if (!sidebarEl || !globalNavEl || !contextNavEl || !docHeaderEl) {
|
|
202
205
|
console.warn("One or more required elements are missing.");
|
|
203
206
|
return;
|
|
204
207
|
}
|
|
205
208
|
|
|
206
|
-
const
|
|
207
|
-
globalNavEl.offsetHeight +
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
const globalNavHeight =
|
|
210
|
+
globalNavEl.offsetHeight + contextNavEl.offsetHeight;
|
|
211
|
+
const docHeaderHeight = docHeaderEl.offsetHeight;
|
|
212
|
+
|
|
213
|
+
sidebarEl.style.setProperty(
|
|
214
|
+
"--dx-c-content-sidebar-sticky-top",
|
|
215
|
+
`${globalNavHeight + docHeaderHeight}px`
|
|
216
|
+
);
|
|
217
|
+
docHeaderEl.style.setProperty(
|
|
218
|
+
"--dx-g-global-header-height",
|
|
219
|
+
`${globalNavHeight}px`
|
|
220
|
+
);
|
|
210
221
|
|
|
211
|
-
|
|
222
|
+
if (docPhaseEl) {
|
|
223
|
+
docPhaseEl.style.setProperty(
|
|
224
|
+
"--doc-c-phase-top",
|
|
225
|
+
`${
|
|
226
|
+
globalNavHeight + docHeaderHeight + sidebarEl.offsetHeight
|
|
227
|
+
}px`
|
|
228
|
+
);
|
|
229
|
+
}
|
|
212
230
|
};
|
|
213
231
|
|
|
214
232
|
updateHighlighted = (event: Event): void =>
|