From cac34d458c84e1412f8efa1c151798cfccc2985c Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Fri, 5 Aug 2022 15:14:26 +0200 Subject: [PATCH] SONAR-16731 [891687] An icon lacks 3 to 1 contrast ratio --- server/sonar-web/src/main/js/app/theme.js | 2 ++ .../js/apps/projects/components/ProjectsSortingSelect.tsx | 2 +- .../__snapshots__/ProjectsSortingSelect-test.tsx.snap | 6 +++--- server/sonar-web/src/main/js/components/icons/HomeIcon.tsx | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/server/sonar-web/src/main/js/app/theme.js b/server/sonar-web/src/main/js/app/theme.js index 7a4011d30d3..2cf92ed634c 100644 --- a/server/sonar-web/src/main/js/app/theme.js +++ b/server/sonar-web/src/main/js/app/theme.js @@ -42,6 +42,7 @@ module.exports = { gray71: '#b4b4b4', gray67: '#aaa', gray60: '#888', + gray52: '#525252', gray40: '#404040', transparentWhite: 'rgba(255,255,255,0.62)', @@ -62,6 +63,7 @@ module.exports = { educationPrinciplesBorderColor: '#B0BDF9', favoriteColor: '#e77213', + homepageColor: '#D86C13', // table rowHoverHighlight: '#ecf6fe', diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx index 537c030644e..10fbf7ee53a 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx @@ -112,7 +112,7 @@ export default class ProjectsSortingSelect extends React.PureComponent { : translate('projects.sort_ascending') } className="js-projects-sorting-invert spacer-left" - color={colors.gray60} + color={colors.gray52} onClick={this.handleDescToggle}> {sortDesc ? : } diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap index 162da984de2..68b9f9d26f6 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap @@ -76,7 +76,7 @@ exports[`should handle the descending sort direction 1`] = ` -- 2.39.5