@salesforcedevs/docs-components
Advanced tools
Comparing version 1.3.300-scroll-fix-alpha2 to 1.3.300-scroll-fix-alpha3
{ | ||
"name": "@salesforcedevs/docs-components", | ||
"version": "1.3.300-scroll-fix-alpha2", | ||
"version": "1.3.300-scroll-fix-alpha3", | ||
"description": "Docs Lightning web components for DSC", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -236,2 +236,3 @@ /* eslint-disable @lwc/lwc/no-document-query */ | ||
// Selecting the doc section heading and RNB here. | ||
const docHeadingEls = Array.from( | ||
@@ -247,2 +248,8 @@ document.querySelectorAll("doc-heading") | ||
docHeaderEl.style.setProperty( | ||
"--dx-g-global-header-height", | ||
`${globalNavHeight}px` | ||
); | ||
// Adjusting the doc section heading on scroll. | ||
docHeadingEls.forEach((docHeadingEl) => { | ||
@@ -257,12 +264,10 @@ (docHeadingEl as any).style.scrollMarginTop = docPhaseEl | ||
// Adjusting the right nav bar on scroll. | ||
if (rightNavBarEl) { | ||
rightNavBarEl.style.setProperty( | ||
"--dx-c-content-sidebar-sticky-top", | ||
docPhaseEl | ||
? `${ | ||
totalHeaderHeight + | ||
docPhaseEl.getBoundingClientRect().height | ||
}px` | ||
: `${totalHeaderHeight}px` | ||
); | ||
rightNavBarEl.style.top = docPhaseEl | ||
? `${ | ||
totalHeaderHeight + | ||
docPhaseEl.getBoundingClientRect().height | ||
}px` | ||
: `${totalHeaderHeight}px`; | ||
} | ||
@@ -269,0 +274,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
254552
6529
21
39
7
223