-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Run and stop icon color contrast refactor #4030
Copy link
Copy link
Open
Labels
Area: DesignFor UI/UX design updates, proposals, or feedbackFor UI/UX design updates, proposals, or feedbackArea:AccessibilityCategory for accessibility related features and bugsCategory for accessibility related features and bugsArea:CSSFor styling or layout issues handled with CSS/SASSFor styling or layout issues handled with CSS/SASSEnhancementImprovement to an existing featureImprovement to an existing featureGood Medium IssueA moderately complex issue for contributors with some experienceA moderately complex issue for contributors with some experience
Metadata
Metadata
Assignees
Labels
Area: DesignFor UI/UX design updates, proposals, or feedbackFor UI/UX design updates, proposals, or feedbackArea:AccessibilityCategory for accessibility related features and bugsCategory for accessibility related features and bugsArea:CSSFor styling or layout issues handled with CSS/SASSFor styling or layout issues handled with CSS/SASSEnhancementImprovement to an existing featureImprovement to an existing featureGood Medium IssueA moderately complex issue for contributors with some experienceA moderately complex issue for contributors with some experience
Increasing Access
This specific subissue aims to address the colors of the run and stop icon in the main page of the p5.js editor.
Web accessibility guidelines require color to not be the only way of conveying visual information. Currently, the button state is only distinguishable by colors that do not have sufficient contrast between each other in dark or high contrast mode.
Feature enhancement details
Change Requested
The requested change is to indicate the active/inactive states by a filled and stroke only version of the button, both using the active color. This would allow for the button states to always be distinguishable from each other without using color alone.
It would probably be good to have the button to have a primary and a secondary variant, as well as variants for disabled, hover, and active (that apply to both primary and secondary). The primary variant would be filled, and the secondary variant would be stroke only. See this article :)
However, if that’s out of your wheelhouse, this could be a more granular change since currently it only affects one button.
Visuals
Before (start/stop indicated with subtle color change alone):
Requested change (basic)
rest
hover
active
Comprehensive style change:
primary, rest (used for other toolbar buttons)
primary, hover/active
secondary, rest
secondary, hover
secondary, active
Files to change
Client > styles > _toolbar.scss
Classes: .toolbar__play-button and .toolbar__stop-button
Under “&:disabled”:
Client > styles > abstracts > _placeholders.scss
%toolbar-button
PR Criteria
Additional Resources: