@salesforcedevs/docs-components 1.3.120-alpha.1 → 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.1",
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",
@@ -405,6 +405,11 @@ export default class ContentLayout extends LightningElement {
405
405
 
406
406
  private onToggleSidebar(e: CustomEvent): void {
407
407
  this.sidebarOpen = e.detail.open;
408
+
409
+ window.scrollTo(0, 0);
410
+ document.querySelector("dx-footer").style.display = this.sidebarOpen
411
+ ? "none"
412
+ : "block";
408
413
  }
409
414
 
410
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