From 9c390b5c9f7a8acf9e9be1907daea8aba876fbdc Mon Sep 17 00:00:00 2001 From: HugoGenillier <118723648+HugoGenillier@users.noreply.github.com> Date: Fri, 31 May 2024 10:01:04 -0400 Subject: [PATCH] Fix constrast issue in search bar Changed the color of the user's input and of the "no results" message. Also modified the opacity for doc titles. All of this to satisfy the RGAA contrast treshold of 4.5. --- _sass/search.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_sass/search.scss b/_sass/search.scss index b2530c98..3041faab 100644 --- a/_sass/search.scss +++ b/_sass/search.scss @@ -159,7 +159,7 @@ word-wrap: break-word; &.search-result-doc-parent { - opacity: 0.5; + opacity: 0.75; @include fs-3; @include mq(md) { @@ -229,6 +229,7 @@ padding-right: $sp-3; padding-bottom: $sp-2; padding-left: $sp-3; + color: $link-color; @include fs-3; } @@ -283,6 +284,7 @@ .search-input { padding: 0; background-color: $search-background-color; + color: $link-color; @include mq(md) { padding-left: 2.3rem; }