Skip to content

Fix/storage bar contrast#3863

Open
NishulDhakar wants to merge 9 commits into
processing:developfrom
NishulDhakar:fix/storage-bar-contrast
Open

Fix/storage bar contrast#3863
NishulDhakar wants to merge 9 commits into
processing:developfrom
NishulDhakar:fix/storage-bar-contrast

Conversation

@NishulDhakar
Copy link
Copy Markdown

@NishulDhakar NishulDhakar commented Feb 12, 2026

Closes #3856

Summary

This PR improves the Storage Bar color contrast across all themes (Light, Dark, and Contrast) to meet WCAG 2.1 Level AA non-text contrast requirements (minimum 3:1 ratio).

Problem: The Storage Bar on the Assets page had insufficient contrast (~1.1:1) between the progress indicator ($P5-pink) and its background ($gray), creating accessibility barriers for visually impaired users.

Solution: Updated theme variables and styling to increase contrast between the progress bar and background, and added a visible border that contrasts with the page background.

Changes Made

Variable Updates (variables.scss)

Light Theme:

  • Changed progress-bar-background-color from $gray to $light
  • Added progress-bar-border-color set to $middle-gray

Dark Theme:

  • Changed progress-bar-background-color from $gray to $darker
  • Added progress-bar-border-color set to $middle-gray

Contrast Theme:

  • Changed progress-bar-background-color from $gray to $darker
  • Changed progress-bar-active-color from $P5-pink to $yellow
  • Added progress-bar-border-color set to $middle-light

Styling Updates (_asset-size.scss)

  • Replaced transparent border with theme-based progress-bar-border-color
  • Added border-color: getThemifyVariable('progress-bar-border-color') within the @include themify() block

QA Steps

  1. Set up local development environment with AWS S3 configuration.
  2. Start the local server and log in
  3. Navigate to https://editor.p5js.org/{username}/assets
  4. Upload one or more assets to trigger the Storage Bar display
  5. Switch between Light, Dark, and Contrast themes using the theme selector
  6. Verify:
    • Progress bar has clearly visible contrast against its background
    • Border is visible and provides additional distinction from page background
    • All three themes display correctly with improved accessibility

Screenshots

Before

Light Theme:
Screenshot 2026-02-12 at 8 31 20 PM

Dark Theme:
Screenshot 2026-02-12 at 8 42 08 PM

Contrast Theme:
Screenshot 2026-02-12 at 9 49 13 PM

After

Light Theme:
Screenshot 2026-02-12 at 8 31 08 PM

Dark Theme:
Screenshot 2026-02-12 at 9 47 40 PM

Contrast Theme:
Screenshot 2026-02-12 at 9 48 41 PM

@raclim
Copy link
Copy Markdown
Collaborator

raclim commented Feb 13, 2026

Tagging @runningonsideprojects and @Izzy-Snyder for review whenever you have a moment!

@runningonsideprojects
Copy link
Copy Markdown
Collaborator

Tagging @runningonsideprojects and @Izzy-Snyder for review whenever you have a moment!

sorry it took so long to respond, will be reviewing later tonight! thank you for your patience @raclim @NishulDhakar

@raclim raclim added Area:Accessibility Category for accessibility related features and bugs Area:CSS For styling or layout issues handled with CSS/SASS labels Feb 19, 2026
@runningonsideprojects
Copy link
Copy Markdown
Collaborator

Confirmed color changes: ✅

Light mode
image

image image

After you fix the merge conflict issues and provide an explanation to the file changes separate from the storage bar component, this PR looks good to go 👍

@NishulDhakar
Copy link
Copy Markdown
Author

Thanks for the feedback. @runningonsideprojects
I’ve resolved the merge conflicts and added clarification regarding the changes outside the storage bar component.
Please let me know if anything else needs adjustment.

Comment thread client/styles/abstracts/_variables.scss Outdated
Comment thread server/models/__test__/user.test.ts Outdated
Comment thread server/types/apiKey.ts Outdated
@raclim
Copy link
Copy Markdown
Collaborator

raclim commented Feb 25, 2026

Thanks so much @NishulDhakar and @runningonsideprojects! I've added in a few more comments—please feel free to ask any questions or raise any thoughts about them!

@raclim
Copy link
Copy Markdown
Collaborator

raclim commented Apr 10, 2026

Just wanted to check in here if you're still interested in adding in the requested changes!

@NishulDhakar
Copy link
Copy Markdown
Author

Hey @raclim, I've addressed all the requested changes alphabetized the progress-bar CSS variables and removed the out-of-scope changes from user.test.ts and apiKey.ts.

Please review when you get a chance

Comment thread server/models/__test__/user.test.ts Outdated
Comment thread client/styles/abstracts/_variables.scss
@NishulDhakar
Copy link
Copy Markdown
Author

Hey @runningonsideprojects Those deletions were unintentional, they happened due to a bad merge conflict resolution when syncing with develop.

I've now restored the file to match develop exactly and re-applied only the intended progress-bar-* changes across all three themes. The latest commit 0626da3 should have a clean diff with no unrelated deletions. Sorry for the noise.

@runningonsideprojects
Copy link
Copy Markdown
Collaborator

@NishulDhakar just wanted to follow up and ask if you are still interested in working on this PR!

@NishulDhakar
Copy link
Copy Markdown
Author

Hey @runningonsideprojects, thanks for following up,
Yes, I’m still interested in working on this PR. I’ve already cleaned up the unintended merge-conflict changes and restored the deleted variables so the diff now only contains the intended progress-bar contrast fixes.

@runningonsideprojects
Copy link
Copy Markdown
Collaborator

Hey @runningonsideprojects, thanks for following up, Yes, I’m still interested in working on this PR. I’ve already cleaned up the unintended merge-conflict changes and restored the deleted variables so the diff now only contains the intended progress-bar contrast fixes.

Hey @NishulDhakar pls address all reviewer comments so we can move through w/ this PR please!

@NishulDhakar NishulDhakar force-pushed the fix/storage-bar-contrast branch from fbf841f to d81bd0f Compare May 24, 2026 06:46
@NishulDhakar
Copy link
Copy Markdown
Author

Hey @raclim @runningonsideprojects , I've addressed all inline comments and resolved all conversations. The diff is now clean, only the intended progress-bar-* changes across all three themes.

Ready for re-review whenever you get a chance!

@runningonsideprojects
Copy link
Copy Markdown
Collaborator

Hey @raclim @runningonsideprojects , I've addressed all inline comments and resolved all conversations. The diff is now clean, only the intended progress-bar-* changes across all three themes.

Ready for re-review whenever you get a chance!

Hi, as mentioned before please respond to all reviewer comments. you are introducing a change that is not within the purview of the original issue and PR description which warrants explanation:

image

Comment thread client/styles/abstracts/_functions.scss Outdated
@NishulDhakar NishulDhakar force-pushed the fix/storage-bar-contrast branch from 65fb43d to e5fbff0 Compare May 25, 2026 16:33
@NishulDhakar
Copy link
Copy Markdown
Author

Hey @raclim @runningonsideprojects all reviewer comments have been addressed and resolved.

The _functions.scss change was unintentional and has been removed.

The PR now only contains the intended progress-bar-* contrast fixes across _variables.scss and _asset-size.scss.

Ready for final review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area:Accessibility Category for accessibility related features and bugs Area:CSS For styling or layout issues handled with CSS/SASS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Increasing color contrast of the Storage Bar on the Assets Page of the Profile Section

3 participants