diff --git a/src/_includes/components/results-description.md b/src/_includes/components/results-description.md index cee77de65..dd7ee2b6c 100644 --- a/src/_includes/components/results-description.md +++ b/src/_includes/components/results-description.md @@ -1,12 +1,17 @@ Text describing how many results are being shown. -* **Showing 1–10 of 999 results for "[query]".** The implementation should follow this format: +#### Structure -> Showing 1–10 of 999 results for "[query]" - * When used in non-search contexts, omit the `for "[query]"` portion. For example: `Showing 1–10 of 999 results.` +The implementation should follow this format: -* **Update when filters change.** The results description must update when filters are changed so that all users can understand that the results have been updated. Implementation should follow this format: +* Showing 1–10 of 999 for "[query]" + * When used in non-search contexts, omit the `for "[query]"` portion. + * If a filter is applied to the results, add "with X filters applied" to the end. This is not necessary when sorting is applied since the Sort component itself acts as the visual indicator. -> Showing 1–10 of 999 results for "[query]" with 5 filters applied. +#### Code guidance -* **Do not reflect changes to sort.** The Sort component itself acts as the visual indicator of the order. +* An `