@salesforcedevs/docs-components 1.3.106-alpha.1 → 1.3.106-alpha.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/package.json
CHANGED
|
@@ -185,6 +185,10 @@ export default class ContentLayout extends LightningElement {
|
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
+
/*
|
|
189
|
+
This is a workaround for the global nav sticky header being decoupled from the doc header & doc phase.
|
|
190
|
+
We have to account for the global nav changing height due to animations.
|
|
191
|
+
*/
|
|
188
192
|
adjustNavPosition = () => {
|
|
189
193
|
const sidebarType = this.useOldSidebar
|
|
190
194
|
? "dx-sidebar-old"
|
|
@@ -219,11 +223,16 @@ export default class ContentLayout extends LightningElement {
|
|
|
219
223
|
`${globalNavHeight}px`
|
|
220
224
|
);
|
|
221
225
|
|
|
226
|
+
// If doc phase element exists, we need to account for its sticky position. Mobile should include the sidebar height (since it becomes sticky aswell).
|
|
222
227
|
if (docPhaseEl) {
|
|
223
228
|
docPhaseEl.style.setProperty(
|
|
224
229
|
"--doc-c-phase-top",
|
|
225
230
|
`${
|
|
226
|
-
|
|
231
|
+
window.innerWidth <= 769
|
|
232
|
+
? globalNavHeight +
|
|
233
|
+
docHeaderHeight +
|
|
234
|
+
sidebarEl.offsetHeight
|
|
235
|
+
: globalNavHeight + docHeaderHeight
|
|
227
236
|
}px`
|
|
228
237
|
);
|
|
229
238
|
}
|