@salesforcedevs/dx-components 1.3.210-lnb16-alpha → 1.3.210-lnb18-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/dx-components",
3
- "version": "1.3.210-lnb16-alpha",
3
+ "version": "1.3.210-lnb18-alpha",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -58,7 +58,7 @@ dx-empty-state {
58
58
  .results-heading {
59
59
  --dx-g-text-body-color: var(--sds-g-gray-14);
60
60
 
61
- padding-bottom: var(--dx-g-spacing-sm);
61
+ margin-bottom: var(--dx-g-spacing-sm);
62
62
  font-weight: var(--dx-g-font-bold);
63
63
  }
64
64
 
@@ -18,6 +18,7 @@ a {
18
18
  padding-right: 0;
19
19
  margin-right: var(--dx-g-spacing-lg);
20
20
  outline: 2px solid var(--dx-g-blue-vibrant-40);
21
+ border-radius: 2px;
21
22
  }
22
23
 
23
24
  .search-text {
@@ -48,15 +48,28 @@ export class SidebarBase extends LightningElement {
48
48
  }
49
49
 
50
50
  @track showBoxShadow = false;
51
+ private scrolling = false;
51
52
 
52
- handleScroll(scrollEvent) {
53
+ /**
54
+ * This method is to handle the scroll event for LNB and show box shadow
55
+ * @param scrollEvent
56
+ */
57
+ handleScroll(scrollEvent: any) {
53
58
  const lnb = scrollEvent.target;
54
59
 
55
- // Check if lnb is scrolled
56
- if (lnb.scrollTop > 0 && lnb.scrollHeight > lnb.clientHeight) {
57
- this.showBoxShadow = true;
58
- } else {
59
- this.showBoxShadow = false;
60
+ if (!this.scrolling) {
61
+ this.scrolling = true;
62
+ // Set a timeout to handle scroll event after a delay
63
+ setTimeout(() => {
64
+ // Check if lnb is scrolled
65
+ if (lnb.scrollTop > 0 && lnb.scrollHeight > lnb.clientHeight) {
66
+ this.showBoxShadow = true;
67
+ } else {
68
+ this.showBoxShadow = false;
69
+ }
70
+ // Reset scrolling back to false after handling the scroll
71
+ this.scrolling = false;
72
+ }, 200);
60
73
  }
61
74
  }
62
75
 
@@ -33,7 +33,7 @@
33
33
  }
34
34
 
35
35
  .padding-horizontal[show-shadow="true"] {
36
- box-shadow: 0 4px 4px -2px var(--dx-g-gray-90);
36
+ box-shadow: var(--dx-g-box-shadow-sm);
37
37
  }
38
38
 
39
39
  .header-title {
@@ -23,6 +23,7 @@
23
23
  padding-right: 0;
24
24
  margin-right: var(--dx-g-spacing-lg);
25
25
  outline: 2px solid var(--dx-g-blue-vibrant-40);
26
+ border-radius: 2px;
26
27
  }
27
28
 
28
29
  .sidebar-item:not(.sidebar-item-selected):hover {