From a4a29012946b631a3755c9928989b6f2fa0a397f Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Wed, 7 Jun 2017 11:43:48 +0100 Subject: [PATCH] fix(aio): remove `...` separator from search results An ellipsis was used to separate the most relevant search results from the alphabetic list. The separator was confusing because it was not clear what it represented. This has been removed and the most relevant results are now indicated by styling with a more bold font and a bit of whitespace between them and the rest of the results. To keep things consistent, if there are fewer than 5 results all the results are now displayed as priorityPages. Closes #17233 --- .../search-results.component.html | 3 +- .../search-results.component.spec.ts | 76 +++++++++---------- .../search-results.component.ts | 6 +- aio/src/styles/2-modules/_search-results.scss | 12 +-- 4 files changed, 45 insertions(+), 52 deletions(-) diff --git a/aio/src/app/search/search-results/search-results.component.html b/aio/src/app/search/search-results/search-results.component.html index 4692a63758..7619e692c2 100644 --- a/aio/src/app/search/search-results/search-results.component.html +++ b/aio/src/app/search/search-results/search-results.component.html @@ -5,7 +5,7 @@

Search Results

-

{{area.name}} ({{area.pages.length}})

+

{{area.name}} ({{area.pages.length + area.priorityPages.length}})

-
more_horiz