From 689272a3ef41e55614c8bd254bccff99945e24eb Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Fri, 30 Sep 2022 15:08:40 +0200 Subject: [PATCH] SONAR-16830 [892932] State of active component lacks 3 to 1 contrast ratio --- .../js/app/components/search/SearchResult.tsx | 14 ++-- .../app/components/search/SearchResults.tsx | 2 +- .../__snapshots__/SearchResult-test.tsx.snap | 12 +--- .../__snapshots__/SearchResults-test.tsx.snap | 3 - .../main/js/app/styles/components/menu.css | 69 ++++++++----------- server/sonar-web/src/main/js/app/theme.js | 7 +- .../main/js/components/common/SelectList.tsx | 28 ++++---- .../js/components/common/SelectListItem.tsx | 6 +- .../common/__tests__/SelectList-test.tsx | 10 +-- .../__snapshots__/SelectList-test.tsx.snap | 6 ++ .../main/js/components/controls/Select.tsx | 44 ++++++++---- .../src/main/js/components/ui/popups.css | 2 +- 12 files changed, 105 insertions(+), 98 deletions(-) diff --git a/server/sonar-web/src/main/js/app/components/search/SearchResult.tsx b/server/sonar-web/src/main/js/app/components/search/SearchResult.tsx index ff444714d01..31a39057c5d 100644 --- a/server/sonar-web/src/main/js/app/components/search/SearchResult.tsx +++ b/server/sonar-web/src/main/js/app/components/search/SearchResult.tsx @@ -43,13 +43,13 @@ export default class SearchResult extends React.PureComponent { const to = getComponentOverviewUrl(component.key, component.qualifier); return ( -
  • this.props.innerRef(component.key, node)} - role="option" - aria-selected={this.props.selected}> - +
  • this.props.innerRef(component.key, node)}> +
    diff --git a/server/sonar-web/src/main/js/app/components/search/SearchResults.tsx b/server/sonar-web/src/main/js/app/components/search/SearchResults.tsx index c0ccf411c86..66160c2dd13 100644 --- a/server/sonar-web/src/main/js/app/components/search/SearchResults.tsx +++ b/server/sonar-web/src/main/js/app/components/search/SearchResults.tsx @@ -45,7 +45,7 @@ export default function SearchResults(props: Props): React.ReactElement { const more = props.more[qualifier]; renderedComponents.push( -