From 47de43386511828ac1198bbcfd2ebfd5c1c243ec Mon Sep 17 00:00:00 2001 From: Grace Park Date: Fri, 7 Jan 2022 13:29:49 -0800 Subject: [PATCH] Accessibility Search updates and additional minor changes (#24136) * update to use heading markup * updating to h3 for accessibility * increase opactiy to meet 5.5:1 color contrast ratio * update opacity to meet color contrast ratio * update styling to match original but use heading markup * remove aria-hidden for accessibility * add h1 title search results and update scroll tip colors * add number of matches * remove no results since we are showing 0 results * add overflow to fix border bottom on version search * Update components/Search.tsx Co-authored-by: Peter Bengtsson * Update components/Search.tsx Co-authored-by: Peter Bengtsson * incorporating feedback and update padding Co-authored-by: Peter Bengtsson --- components/Search.module.scss | 4 +++ components/Search.tsx | 39 ++++++++------------- components/ui/ScrollButton/ScrollButton.tsx | 2 +- data/ui.yml | 2 ++ includes/rest_operation.html | 4 +-- 5 files changed, 24 insertions(+), 27 deletions(-) diff --git a/components/Search.module.scss b/components/Search.module.scss index 4ccc25ca94..b88b6c8161 100644 --- a/components/Search.module.scss +++ b/components/Search.module.scss @@ -51,3 +51,7 @@ .selectWording { margin: 0.64rem 0.5rem 0 0; } + +.versionSearchContainer { + overflow: hidden; +} diff --git a/components/Search.tsx b/components/Search.tsx index d99a60e4fe..3f6d0adc70 100644 --- a/components/Search.tsx +++ b/components/Search.tsx @@ -206,7 +206,7 @@ export function Search({ ) const SearchInput = ( -