Skip to content

Jaden - HGN Questionnaire Dashboard: Fix Skill Score column coloring (followup for PR #4214) (DONE Jaden) - #5498

Open
Jaden300 wants to merge 2 commits into
developmentfrom
1342-hgn-questionnaire-fix-skill-score-coloring
Open

Jaden - HGN Questionnaire Dashboard: Fix Skill Score column coloring (followup for PR #4214) (DONE Jaden)#5498
Jaden300 wants to merge 2 commits into
developmentfrom
1342-hgn-questionnaire-fix-skill-score-coloring

Conversation

@Jaden300

@Jaden300 Jaden300 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Jaden - HGN Questionnaire Dashboard: Fix Skill Score column coloring (followup for PR #4214) (DONE Jaden)- #5498

image

Description

Followup fix for PR #4214 (HGN Questionnaire Dashboard: Display Community Members' Skill & Contact - Top 15 Ranking).

Fixes the code coloring for the Skill Score column on /topcommunitymembers.

Priority: Medium

Changes

  • Dark mode contrast: .lowScore / .highScore had no dark-mode variant, so the red (#e53e3e) and green (#38a169) score text rendered against the dark table background (~#243447) at roughly 3:1 - below the WCAG AA 4.5:1 minimum. Added .darkMode .lowScore / .darkMode .highScore overrides (#fc8181 / #68d391) that clear 4.5:1 on the dark surface.
  • Light mode contrast: nudged the light-mode colors to #c53030 / #2f855a so they also clear 4.5:1 on white.
  • Styling cleanup: moved the score cell's trailing /10 presentation into a .scoreCell CSS Module class instead of leaving the <td> unstyled.

No behavior change to the <5 / >=5 threshold or the ranking logic.

How to test

  1. Check out this branch, npm install, npm run dev
  2. Log in as admin, go to /topcommunitymembers
  3. Confirm scores <5 are red and >=5 are green, and that the color is clearly legible in both light and dark mode
  4. Toggle dark mode and re-check the Skill Score column contrast

Note

CSS Modules only, dark mode via useSelector(state => state.theme.darkMode) (already wired on the container). No new dependencies, no backend changes.

vod.mov

Task 1342 - HGN Questionnaire Dashboard followup for PR #4214.

- Add dark-mode overrides for .lowScore / .highScore so the score text
  meets WCAG 4.5:1 contrast on the dark table background (previous
  #e53e3e / #38a169 failed against the dark surface).
- Darken the light-mode red/green slightly for 4.5:1 on white.
- Move the trailing /10 score-cell styling into a .scoreCell CSS module
  class instead of leaving it unstyled inline.
@netlify

netlify Bot commented Sep 3, 2026

Copy link
Copy Markdown

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 6a6a2d9
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/6a9e01c5dfa00c0008db6bb8
😎 Deploy Preview https://deploy-preview-5498--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@Jaden300 Jaden300 changed the title Task 1342 - HGN Questionnaire Dashboard: Fix Skill Score column coloring (followup for PR #4214) HGN Questionnaire Dashboard: Fix Skill Score column coloring (followup for PR #4214) (DONE Jaden) Sep 3, 2026
@one-community one-community changed the title HGN Questionnaire Dashboard: Fix Skill Score column coloring (followup for PR #4214) (DONE Jaden) Jaden - HGN Questionnaire Dashboard: Fix Skill Score column coloring (followup for PR #4214) Sep 4, 2026
@one-community one-community added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Sep 4, 2026
@iAbhi001
iAbhi001 self-requested a review September 5, 2026 14:47
iAbhi001

This comment was marked as outdated.

@devangsaraogi devangsaraogi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally on /topcommunitymembers in both light and dark mode and checked the available skill options.

Light mode is working as expected: the Skill Score styling is applied correctly, the /10 presentation remains aligned and changing the selected skill updates the table normally.

I found one issue in dark mode and left an inline comment with testing evidence. All of the available scores in the current dataset are 10/10, so they should use the new highScore green styling but they continue to render white. The global dark-mode rule in public/index.css uses color: #ffffff !important which appears to override the new CSS Module selector.

Requesting changes so the intended Skill Score color formatting is actually applied in dark mode.

color: #fc8181;
}

.darkMode .highScore {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new dark-mode highScore color is not taking effect at runtime.

I reproduced this locally on the current PR head at /topcommunitymembers. All of the available scores are 10/10, so they meet the >= 5 condition and should render green but they are still displayed in white in dark mode.

It looks like the global dark-mode rule in public/index.css (body.dark-mode * { color: #ffffff !important; }) is overriding this selector.

Could we make this override strong enough to take precedence so the Skill Score column actually uses the intended green color in dark mode?

Image

@DeepighaJ DeepighaJ left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Tested the PR in dark mode.
  • The Skill Score values do not appear to follow the expected color styling — scores >= 5 should display in green, but the 10/10 scores are currently rendering in white.
  • Please fix the Skill Score color styling and ensure the colors are clearly legible in both light and dark modes.
  • Additionally, the email links are rendering in white rather than blue, which appears to be a dark-mode styling inconsistency. Please review this as well if it is affected by the changes in this PR.
Image Image

@iAbhi001
iAbhi001 self-requested a review September 6, 2026 06:28

@iAbhi001 iAbhi001 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dark Mode QA Feedback:
Skill Score Color Coding: Scores ≥ 5 should be green, but 10/10 values render as white. Please correct the color logic and verify legibility in both light and dark modes.
Link Styling: Email links appear white instead of blue in dark mode. Please check if this regression stems from this PR and update it accordingly.

The global rule body.dark-mode * { color: #fff !important } in public/index.css
outranked the plain CSS Module dark-mode selectors, so score colors and link
colors rendered white in dark mode.

- Add !important to .darkMode .lowScore / .highScore so >=5 scores show green
  and <5 show red in dark mode
- Add .darkMode overrides for .iconLinkDark / .underlineLinkDark so email,
  phone and Slack links render blue instead of white
- All colors clear WCAG AA 4.5:1 on the dark table surface
@sonarqubecloud

sonarqubecloud Bot commented Sep 7, 2026

Copy link
Copy Markdown

@Jaden300 Jaden300 changed the title Jaden - HGN Questionnaire Dashboard: Fix Skill Score column coloring (followup for PR #4214) Jaden - HGN Questionnaire Dashboard: Fix Skill Score column coloring (followup for PR #4214) (DONE Jaden) Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants