Socket
Socket
Sign inDemoInstall

@salesforcedevs/docs-components

Package Overview
Dependencies
Maintainers
0
Versions
610
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforcedevs/docs-components - npm Package Compare versions

Comparing version 1.3.300-scroll-fix-alpha2 to 1.3.300-scroll-fix-alpha3

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc