Skip to content

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

@runningonsideprojects

Description

@runningonsideprojects

Increasing Access

This feature enhancement is targeting increasing web accessibility for visually impaired users by adhering color contrast standards to WCAG guidelines.

Feature enhancement details

Issue Description

This specific subissue aims to refactor the color contrasts of the Storage Bar on the Assets page for all themes.

WCAG guidelines state that non-text color contrast should be at least 3:1. In all themes, the progress bar’s color $P5-pink and background color of the bar $gray have a contrast of just 1.1:1. This could be addressed by 1) increasing contrast between the bar color and the progress bar background, and 2) adding a border that contrasts with the page background.

Location of the requested changes on the editor: https://editor.p5js.org/{username}/assets

Change Requested

  • Light theme

    • Change progress-bar-background-color to $light
    • Add a variable to the light theme called progress-bar-border-color and set it to $middle-gray
  • Dark theme

    • Change progress-bar-background-color to $darker
    • Add a variable to the light theme called progress-bar-border-color and set it to $middle-gray
  • Contrast theme

    • Change progress-bar-background-color to $darker
    • Add a variable to the light theme called progress-bar-border-color and set it to $middle-light
    • Change progress-bar-active-color to $yellow
  • In _asset-size.scss, change the border from transparent to progress-bar-border-color

    • Within @include themify(), add a line that sets border-color to getThemifyVariable(' progress-bar-border-color')

Visuals

Dark mode:

Image

Light mode:

Image

Files to change

  • Variables.scss ($themes), _asset-size.scss

PR Criteria

Additional Resources:

Metadata

Metadata

Assignees

Labels

Area:AccessibilityCategory for accessibility related features and bugsEnhancementImprovement to an existing featureGood First IssueA beginner-friendly issue, great for first-time contributorsReady for WorkIssue is ready for development work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions