@salesforcedevs/docs-components 1.3.106-alpha.1 → 1.3.106-alpha.3

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.106-alpha.1",
3
+ "version": "1.3.106-alpha.3",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -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
- globalNavHeight + docHeaderHeight + sidebarEl.offsetHeight
231
+ window.innerWidth <= 769
232
+ ? globalNavHeight +
233
+ docHeaderHeight +
234
+ sidebarEl.offsetHeight
235
+ : globalNavHeight + docHeaderHeight
227
236
  }px`
228
237
  );
229
238
  }
@@ -84,7 +84,6 @@ header:not(.has-brand) > .header_l2 {
84
84
  }
85
85
 
86
86
  .header_l2_group-title {
87
- height: var(--dx-g-doc-header-main-nav-height);
88
87
  margin-right: 0;
89
88
  padding: var(--dx-g-spacing-smd)
90
89
  var(--dx-g-global-header-padding-horizontal);