@coras-io/embed 0.6.10 → 0.6.11

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @coras-io/embed
2
2
 
3
+ ## 0.6.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 579e6da: Align navbar search result icons with the first line of the title and give the search field the standard clear icon
8
+
3
9
  ## 0.6.10
4
10
 
5
11
  ### Patch Changes
@@ -116,6 +116,7 @@ let CorasInputField = class CorasInputField extends LitElement {
116
116
  class="${classMap({
117
117
  error: this.validated && this.error,
118
118
  compact: this.compact,
119
+ clearable: this.clearable,
119
120
  })}"
120
121
  />`;
121
122
  }
@@ -201,6 +201,10 @@ export default css `
201
201
  }
202
202
  }
203
203
 
204
+ input.clearable::-webkit-search-cancel-button {
205
+ display: none;
206
+ }
207
+
204
208
  input,
205
209
  ::slotted(#input) {
206
210
  height: var(--field-input-height);
@@ -404,6 +404,7 @@ let CorasNavBar = class CorasNavBar extends SearchMixin(LitElement) {
404
404
  value=${this.searchValue}
405
405
  ?rounded=${true}
406
406
  ?compact=${true}
407
+ clearable
407
408
  @click=${this.toggleSearchDropdown}
408
409
  @value-changed=${this.handleSearchInputChange}
409
410
  >
@@ -492,7 +493,7 @@ let CorasNavBar = class CorasNavBar extends SearchMixin(LitElement) {
492
493
  }
493
494
  renderSearchResults() {
494
495
  return html `
495
- <coras-select-list ?spacious=${true}>
496
+ <coras-select-list class="search-results" ?spacious=${true}>
496
497
  ${this.renderSearchItems()}
497
498
  </coras-select-list>
498
499
  `;
@@ -529,7 +530,11 @@ let CorasNavBar = class CorasNavBar extends SearchMixin(LitElement) {
529
530
  }
530
531
  renderMobileSearchResults() {
531
532
  return html `
532
- <coras-select-list data-testid="mobile-search-list" ?spacious=${true}>
533
+ <coras-select-list
534
+ class="search-results"
535
+ data-testid="mobile-search-list"
536
+ ?spacious=${true}
537
+ >
533
538
  ${this.renderSearchItems()}
534
539
  </coras-select-list>
535
540
  `;
@@ -63,6 +63,10 @@ export default css `
63
63
  --field-prefix-icon-color: var(--navbar-icon-color);
64
64
  }
65
65
 
66
+ .search-results coras-select-option > coras-icon {
67
+ align-self: flex-start;
68
+ }
69
+
66
70
  coras-search-button {
67
71
  --search-button-color: var(--coras-color-text);
68
72
  --search-button-icon-color: var(--navbar-icon-color);
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "engines": {
21
21
  "node": ">=22"
22
22
  },
23
- "version": "0.6.10",
23
+ "version": "0.6.11",
24
24
  "private": false,
25
25
  "homepage": "https://docs.coras.io",
26
26
  "bugs": {