@financial-times/dotcom-ui-header 9.0.0-beta.7 → 9.0.0-beta.8
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": "@financial-times/dotcom-ui-header",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "browser.js",
|
|
6
6
|
"main": "component.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"author": "",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@financial-times/dotcom-types-navigation": "^9.0.0-beta.
|
|
25
|
+
"@financial-times/dotcom-types-navigation": "^9.0.0-beta.8",
|
|
26
26
|
"n-topic-search": "^4.0.0",
|
|
27
27
|
"n-ui-foundations": "^9.0.0"
|
|
28
28
|
},
|
|
@@ -58,11 +58,11 @@ class CustomSuggestionList extends BaseRenderer {
|
|
|
58
58
|
renderError() {
|
|
59
59
|
return `
|
|
60
60
|
<div
|
|
61
|
-
|
|
61
|
+
class="o-message o-message--alert o-message--error enhanced-search__margin-top"
|
|
62
62
|
data-o-component="o-message">
|
|
63
|
-
<div
|
|
64
|
-
<div
|
|
65
|
-
<p
|
|
63
|
+
<div class="o-message__container">
|
|
64
|
+
<div class="o-message__content">
|
|
65
|
+
<p class="o-message__content-main">Something went wrong!</p>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
68
|
</div>
|
|
@@ -47,7 +47,7 @@ class EnhancedSearch extends TopicSearch {
|
|
|
47
47
|
// This is to update the suggestion chip on keyup
|
|
48
48
|
this.suggestionsView.setState({
|
|
49
49
|
searchTerm: this.searchEl.value,
|
|
50
|
-
loading: this.searchEl.value && this.searchEl.value.length
|
|
50
|
+
loading: this.searchEl.value && this.searchEl.value.length >= this.minLength,
|
|
51
51
|
suggestions: {}
|
|
52
52
|
})
|
|
53
53
|
super.onType(ev)
|