@salesforcedevs/dx-components 1.3.229-dh4-alpha → 1.3.229-dh6-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
|
@@ -26,9 +26,6 @@
|
|
|
26
26
|
<div class="header padding-horizontal" if:false={mobile}>
|
|
27
27
|
<h2 class="dx-text-display-6 header-title">{header}</h2>
|
|
28
28
|
</div>
|
|
29
|
-
<!-- <div class="mobile-header padding-horizontal" if:true={mobile}>
|
|
30
|
-
<h2 class="dx-text-display-6">{header}</h2>
|
|
31
|
-
</div> -->
|
|
32
29
|
<div class="search padding-horizontal">
|
|
33
30
|
<dx-sidebar-search
|
|
34
31
|
onchange={onSearchChange}
|
|
@@ -41,7 +38,7 @@
|
|
|
41
38
|
</div>
|
|
42
39
|
<slot name="version-picker"></slot>
|
|
43
40
|
<h2
|
|
44
|
-
class="results-heading dx-text-body-3"
|
|
41
|
+
class="results-heading dx-text-body-3 padding-horizontal"
|
|
45
42
|
if:true={showResultsHeading}
|
|
46
43
|
>
|
|
47
44
|
Results
|
|
@@ -28,9 +28,6 @@
|
|
|
28
28
|
<div class="header padding-horizontal" if:false={mobile}>
|
|
29
29
|
<h2 class="dx-text-display-6 header-title">{header}</h2>
|
|
30
30
|
</div>
|
|
31
|
-
<!-- <div class="mobile-header padding-horizontal" if:true={mobile}>
|
|
32
|
-
<h2 class="dx-text-display-6">{header}</h2>
|
|
33
|
-
</div> -->
|
|
34
31
|
<div class="search padding-horizontal">
|
|
35
32
|
<dx-input
|
|
36
33
|
class="search-box"
|
|
@@ -80,6 +80,7 @@ export abstract class HeaderBase extends LightningElement {
|
|
|
80
80
|
private showNavScrollShadow: boolean = false;
|
|
81
81
|
protected isSearchOpen: boolean = false;
|
|
82
82
|
private _showBanner?: boolean = false;
|
|
83
|
+
protected shouldRender: boolean = false;
|
|
83
84
|
|
|
84
85
|
get url() {
|
|
85
86
|
return this.href ? new URL(this.href!) : window.location;
|
|
@@ -195,9 +196,11 @@ export abstract class HeaderBase extends LightningElement {
|
|
|
195
196
|
private onMediaChange = (e: MediaQueryListEvent | MediaQueryList) => {
|
|
196
197
|
if (!e.matches) {
|
|
197
198
|
this.mobile = false;
|
|
199
|
+
this.shouldRender = false;
|
|
198
200
|
this.closeMobileNavMenu();
|
|
199
201
|
} else {
|
|
200
202
|
this.mobile = true;
|
|
203
|
+
this.shouldRender = true;
|
|
201
204
|
}
|
|
202
205
|
};
|
|
203
206
|
|