@reuters-graphics/graphics-components 0.0.5 → 0.0.6
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.
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
.slice(0, limit)
|
|
148
148
|
.filter((result) => !filter(result.original))
|
|
149
149
|
.map((result) => ({ ...result, disabled: disable(result.original) }))
|
|
150
|
-
: data.
|
|
150
|
+
: data.map((d) => ({ string: extract(d), original: d }));
|
|
151
151
|
|
|
152
152
|
$: resultsId = results.map((result) => extract(result.original)).join('');
|
|
153
153
|
$: showResults = !hideDropdown && results.length > 0 && isFocused;
|
|
@@ -274,8 +274,9 @@ ul {
|
|
|
274
274
|
position: absolute;
|
|
275
275
|
top: 100%;
|
|
276
276
|
left: 0;
|
|
277
|
-
width: 100
|
|
277
|
+
width: calc(100% - 2px);
|
|
278
278
|
padding: 0;
|
|
279
|
+
margin: 0;
|
|
279
280
|
list-style: none;
|
|
280
281
|
background-color: inherit;
|
|
281
282
|
}
|
|
@@ -283,11 +284,15 @@ ul {
|
|
|
283
284
|
[aria-expanded=true] ul {
|
|
284
285
|
z-index: 1;
|
|
285
286
|
border: 1px solid #ddd;
|
|
287
|
+
max-height: 50vh;
|
|
288
|
+
overflow-y: scroll;
|
|
286
289
|
}
|
|
287
290
|
|
|
288
291
|
li,
|
|
289
292
|
.no-results {
|
|
290
293
|
padding: 0.25rem 1rem;
|
|
294
|
+
font-family: "Knowledge", "Source Sans Pro", Arial, sans-serif;
|
|
295
|
+
color: #333;
|
|
291
296
|
}
|
|
292
297
|
|
|
293
298
|
li {
|