@salesforcedevs/docs-components 1.3.227-dh6-alpha → 1.3.227-dh7-alpha

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.227-dh6-alpha",
3
+ "version": "1.3.227-dh7-alpha",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -40,7 +40,7 @@
40
40
  </header>
41
41
  </dx-brand-theme-provider>
42
42
  </template>
43
- <template if:false={shouldRender}>
43
+ <template if:true={showDocDivider}>
44
44
  <div class="no-header-content"></div>
45
45
  </template>
46
46
  </template>
@@ -23,6 +23,8 @@ export default class Header extends HeaderBase {
23
23
  private _scopedNavItems!: OptionWithNested[];
24
24
  private tablet = false;
25
25
  private tabletMatchMedia!: MediaQueryList;
26
+ private shouldRender: boolean = false;
27
+ private showDocDivider: boolean = false;
26
28
 
27
29
  protected mobileBreakpoint(): string {
28
30
  return MOBILE_MATCH;
@@ -41,16 +43,22 @@ export default class Header extends HeaderBase {
41
43
  this.tabletMatchMedia.addEventListener("change", this.onTabletChange);
42
44
 
43
45
  if (
44
- ((window.location.pathname.includes("/docs/") &&
46
+ (window.location.pathname.includes("/docs/") &&
45
47
  window.location.pathname !== "/docs/apis") ||
46
- window.location.pathname ===
47
- "/tableau/embedding-playground/overview" ||
48
- window.location.host === "localhost:6006" ||
49
- window.location.host === "dsc-components.herokuapp.com") &&
50
- (this.brand || this.mobile)
48
+ window.location.pathname ===
49
+ "/tableau/embedding-playground/overview" ||
50
+ window.location.host === "localhost:6006" ||
51
+ window.location.host === "dsc-components.herokuapp.com"
51
52
  ) {
52
53
  this.shouldRender = true;
53
54
  }
55
+
56
+ if (this.shouldRender && window.location.pathname.includes("/docs/")) {
57
+ if (!this.brand && !this.mobile) {
58
+ this.shouldRender = false;
59
+ this.showDocDivider = true;
60
+ }
61
+ }
54
62
  }
55
63
 
56
64
  disconnectedCallback(): void {