@salesforcedevs/docs-components 1.3.300-scroll-alpha3 → 1.3.300-scroll-alpha4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.3.300-scroll-alpha3",
3
+ "version": "1.3.300-scroll-alpha4",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -219,7 +219,7 @@ export default class ContentLayout extends LightningElement {
219
219
  this.template.querySelector("[name=doc-phase]")! as any
220
220
  ).assignedElements()[0] as HTMLSlotElement;
221
221
 
222
- if(!docPhaseEl) {
222
+ if (!docPhaseEl) {
223
223
  docPhaseEl = (
224
224
  this.template.querySelector("[name=version-banner]")! as any
225
225
  ).assignedElements()[0] as HTMLSlotElement;
@@ -237,7 +237,7 @@ export default class ContentLayout extends LightningElement {
237
237
  (globalNavEl.getBoundingClientRect().height !== 72 ? 0 : 72) +
238
238
  contextNavEl.getBoundingClientRect().height;
239
239
  const docHeaderHeight = docHeaderEl.getBoundingClientRect().height;
240
- const totalHeaderHeight = globalNavHeight + docHeaderHeight + 40;
240
+ const totalHeaderHeight = globalNavHeight + docHeaderHeight;
241
241
 
242
242
  // Selecting the doc section heading and RNB here.
243
243
  const docHeadingEls = Array.from(
@@ -260,9 +260,10 @@ export default class ContentLayout extends LightningElement {
260
260
  (docHeadingEl as any).style.scrollMarginTop = docPhaseEl
261
261
  ? `${
262
262
  totalHeaderHeight +
263
- docPhaseEl.getBoundingClientRect().height
263
+ docPhaseEl.getBoundingClientRect().height +
264
+ 40
264
265
  }px`
265
- : `${totalHeaderHeight}px`;
266
+ : `${totalHeaderHeight + 40}px`;
266
267
  });
267
268
 
268
269
  // Adjusting the right nav bar on scroll.