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
Visuals
Dark mode:
Light mode:
Files to change
- Variables.scss ($themes), _asset-size.scss
PR Criteria
Additional Resources:
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
progress-bar-background-colorto$lightprogress-bar-border-colorand set it to$middle-grayDark theme
progress-bar-background-colorto$darkerprogress-bar-border-colorand set it to$middle-grayContrast theme
progress-bar-background-colorto$darkerprogress-bar-border-colorand set it to$middle-lightprogress-bar-active-colorto$yellowIn
_asset-size.scss, change theborderfromtransparenttoprogress-bar-border-color@include themify(), add a line that setsborder-colortogetThemifyVariable(' progress-bar-border-color')Visuals
Dark mode:
Light mode:
Files to change
PR Criteria
Additional Resources: