@salesforcedevs/docs-components 1.3.282-scroll-fix-alpha → 1.3.282-scroll-fix-alpha1

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.282-scroll-fix-alpha",
3
+ "version": "1.3.282-scroll-fix-alpha1",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -42,10 +42,7 @@ dx-toc {
42
42
 
43
43
  /* offset page jump link due to fixed header */
44
44
  ::slotted(doc-heading) {
45
- scroll-margin-top: calc(
46
- var(--dx-g-global-header-height) + var(--dx-g-doc-header-height) +
47
- var(--dx-g-spacing-4xl) - var(--dx-g-spacing-xs)
48
- );
45
+ scroll-margin-top: calc(var(--dx-c-content-sidebar-sticky-top) + 30px);
49
46
  }
50
47
 
51
48
  .content {
@@ -241,6 +241,12 @@ export default class ContentLayout extends LightningElement {
241
241
  `${globalNavHeight}px`
242
242
  );
243
243
 
244
+ const rnbEl = this.template.querySelector(".right-nav-bar");
245
+
246
+ if (rnbEl) {
247
+ rnbEl.style.top = `${globalNavHeight + docHeaderHeight + 30}px`;
248
+ }
249
+
244
250
  // If doc phase element exists, we need to account for its sticky position. Mobile should include the sidebar height (since it becomes sticky aswell).
245
251
  if (docPhaseEl) {
246
252
  docPhaseEl.style.setProperty(