From e470457a24b9889cd6c82cd30d21f6d6543965ca Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Sat, 21 Oct 2023 12:43:24 +0100 Subject: [PATCH] :sparkles: Hide sparkle emoji to screen readers. --- src/packages/web/page.gleam | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/packages/web/page.gleam b/src/packages/web/page.gleam index 64b4848..a72a135 100644 --- a/src/packages/web/page.gleam +++ b/src/packages/web/page.gleam @@ -119,10 +119,14 @@ fn search_aware_package_list( "There are", int.to_string(total_package_count), pluralize_package(total_package_count), - "available ✨", + "available", ] |> string.join(" "), ), + html.span( + [attribute("aria-hidden", "true")], + [element.text(" ✨")], + ), ], ), package_list(packages),