@salesforcedevs/dx-components 1.3.219-alpha.1 → 1.3.219-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/dx-components",
3
- "version": "1.3.219-alpha.1",
3
+ "version": "1.3.219-alpha.3",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -274,18 +274,14 @@ li.coveo-dynamic-facet-breadcrumb-value-list-item {
274
274
  }
275
275
 
276
276
  .dx-result-title {
277
+ /* override the default Coveo style */
278
+ color: var(--dx-g-blue-vibrant-20) !important;
277
279
  font-family: var(--dx-g-font-display);
278
280
  font-size: var(--dx-g-text-lg);
279
281
  margin: 0;
280
282
  margin-bottom: var(--dx-g-spacing-sm);
281
283
  }
282
284
 
283
- .CoveoResultLink,
284
- a.CoveoResultLink,
285
- .CoveoResult a.CoveoResultLink {
286
- color: var(--dx-g-blue-vibrant-20);
287
- }
288
-
289
285
  .dx-result-excerpt {
290
286
  color: var(--dx-g-gray-10);
291
287
  font-size: 14px;
@@ -57,17 +57,15 @@ const resultsTemplatesInnerHtml = `
57
57
  <% } %>
58
58
  <% } %>
59
59
  </div>
60
- <p class="dx-result-title">
61
- <span
62
- class="CoveoResultLink"
63
- data-field="@uri"
64
- ></span>
60
+ <a
61
+ href="<%= raw.uri %>"
62
+ class="dx-result-title"
63
+ >
64
+ <%= title %>
65
65
  <% if (!raw.uri.includes('developer.salesforce.com') && !raw.uri.includes('developer-website-s.herokuapp.com')) { %>
66
- <a href="/" style="display: inline-block;">
67
- <svg xmlns="http://www.w3.org/2000/svg" fill="var(--dx-g-blue-vibrant-20)" width="20" height="20" part="svg" aria-hidden="true"><use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#new_window"></use></svg>
68
- </a>
66
+ <svg xmlns="http://www.w3.org/2000/svg" style="display: inline; vertical-align: baseline;" fill="var(--dx-g-blue-vibrant-20)" width="20" height="20" part="svg" aria-hidden="true"><use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#new_window"></use></svg>
69
67
  <% } %>
70
- </p>
68
+ </a>
71
69
  <p class="dx-result-excerpt CoveoExcerpt"></p>
72
70
  </div>
73
71
  </script>
@@ -89,14 +87,19 @@ const resultsTemplatesInnerHtml = `
89
87
  <% } %>
90
88
  <% } %>
91
89
  </div>
92
- <p class="dx-result-title">
93
- <a class="CoveoResultLink"></a>
90
+ <a
91
+ href="<%= raw.uri %>"
92
+ class="dx-result-title"
93
+ >
94
+ <% if (title) { %>
95
+ <%= title %>
96
+ <% } else { %>
97
+ <%= uri %>
98
+ <% } %>
94
99
  <% if (!raw.uri.includes('developer.salesforce.com') && !raw.uri.includes('developer-website-s.herokuapp.com')) { %>
95
- <a href="/" style="display: inline-block;">
96
- <svg xmlns="http://www.w3.org/2000/svg" fill="var(--dx-g-blue-vibrant-20)" width="20" height="20" part="svg" aria-hidden="true"><use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#new_window"></use></svg>
97
- </a>
100
+ <svg xmlns="http://www.w3.org/2000/svg" style="display: inline; vertical-align: baseline;" fill="var(--dx-g-blue-vibrant-20)" width="20" height="20" part="svg" aria-hidden="true"><use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#new_window"></use></svg>
98
101
  <% } %>
99
- </p>
102
+ </a>
100
103
  <p class="dx-result-excerpt CoveoExcerpt"></p>
101
104
  </div>
102
105
  </script>