@coras-io/embed 0.6.10 → 0.6.12
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,17 @@
|
|
|
1
1
|
# @coras-io/embed
|
|
2
2
|
|
|
3
|
+
## 0.6.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7b452be: Centre the nav search clear icon in the field and show it in the muted text colour
|
|
8
|
+
|
|
9
|
+
## 0.6.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 579e6da: Align navbar search result icons with the first line of the title and give the search field the standard clear icon
|
|
14
|
+
|
|
3
15
|
## 0.6.10
|
|
4
16
|
|
|
5
17
|
### 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
|
}
|
|
@@ -125,6 +126,7 @@ let CorasInputField = class CorasInputField extends LitElement {
|
|
|
125
126
|
<coras-icon
|
|
126
127
|
assets-url="${this.assetsURL}"
|
|
127
128
|
icon="close-circle"
|
|
129
|
+
size="small"
|
|
128
130
|
label=${msg("Clear")}
|
|
129
131
|
@click=${this._onClear}
|
|
130
132
|
></coras-icon>
|
|
@@ -45,6 +45,7 @@ export default css `
|
|
|
45
45
|
--text-field-icon-color-error: var(--coras-color-error);
|
|
46
46
|
|
|
47
47
|
--field-prefix-icon-color: var(--coras-color-text);
|
|
48
|
+
--field-clear-icon-color: var(--coras-color-text-muted);
|
|
48
49
|
|
|
49
50
|
display: block;
|
|
50
51
|
width: 100%;
|
|
@@ -196,11 +197,14 @@ export default css `
|
|
|
196
197
|
padding-right: 0.5rem;
|
|
197
198
|
|
|
198
199
|
coras-icon {
|
|
199
|
-
|
|
200
|
-
height: 1rem;
|
|
200
|
+
fill: var(--field-clear-icon-color);
|
|
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
|
|
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);
|