@salesforcedevs/docs-components 1.3.120-alpha.2 → 1.3.120-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.120-alpha.2",
3
+ "version": "1.3.120-alpha.3",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -406,9 +406,10 @@ export default class ContentLayout extends LightningElement {
406
406
  private onToggleSidebar(e: CustomEvent): void {
407
407
  this.sidebarOpen = e.detail.open;
408
408
 
409
- if (e.detail.open) {
410
- window.scrollTo(0, 0);
411
- }
409
+ window.scrollTo(0, 0);
410
+ document.querySelector("dx-footer").style.display = this.sidebarOpen
411
+ ? "none"
412
+ : "block";
412
413
  }
413
414
 
414
415
  // since the content body is set to a height of 0 when the sidebar is open, we need to reset the sidebarOpen state when the window is resized