@salesforcedevs/dx-components 1.32.0-alpha.5 → 1.32.0-alpha.7

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.32.0-alpha.5",
3
+ "version": "1.32.0-alpha.7",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -44,5 +44,5 @@
44
44
  "luxon": "3.4.4",
45
45
  "msw": "^2.12.4"
46
46
  },
47
- "gitHead": "e470c1e1ce20a2e45377e1527c65dbb231119f13"
47
+ "gitHead": "10de923f77a1fb72ba450c8541cb783c9c0b9208"
48
48
  }
@@ -161,6 +161,13 @@ export default class Sidebar extends SidebarBase {
161
161
 
162
162
  private onSearchChange(e: CustomEvent) {
163
163
  this.requestedFetchMoreResults = false;
164
+ const isFirstSearchHydration = this.searchValue === null;
165
+ const hasSelectedResult = (e.detail.results || []).some(
166
+ (result: SidebarSearchResult) => !!result.selected
167
+ );
168
+ if (isFirstSearchHydration && hasSelectedResult) {
169
+ this.scrollToSelectedSearchResult = true;
170
+ }
164
171
  this.searchResults = e.detail.results;
165
172
  this.searchValue = e.detail.value;
166
173
  }
@@ -73,7 +73,9 @@ a {
73
73
 
74
74
  .title {
75
75
  color: var(--dx-g-text-heading-color);
76
- line-height: var(--dx-g-spacing-mlg);
76
+ line-height: var(--dx-g-spacing-md);
77
+ display: block;
78
+ margin-bottom: 4px;
77
79
  }
78
80
 
79
81
  /* Match full-doc search highlight: light yellow from dx-css-variables */
@@ -81,7 +83,3 @@ a {
81
83
  background-color: var(--dx-g-yellow-vibrant-90);
82
84
  font-weight: 700;
83
85
  }
84
-
85
- a > *:not(:last-child) {
86
- margin-bottom: var(--dx-g-spacing-xs);
87
- }