processing / processing/p5.js-web-editor

Run and stop icon color contrast refactor

Open
#4,030 23 comments 0 reactions 1 assignee View on GitHub

@VaibhavNarayann is already working on this.

Since Jun 15, 2026.

Area: Design Area:Accessibility Area:CSS Enhancement Good Medium Issue
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

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):

image showing buttons before the change in the light theme

Requested change (basic)

Image

rest

  • bg fill: none
  • icon fill: none
  • icon and button outline: toolbar-button-color

hover

  • bg fill: none
  • icon fill: none
  • icon and button outline: button-background-active-color

active

  • bg fill: button-background-active-color
  • icon fill: toolbar-button-color

Comprehensive style change:

Image

primary, rest (used for other toolbar buttons)

  • bg fill: toolbar-button-background-color
  • icon fill: toolbar-button-color

primary, hover/active

  • bg fill: button-background-active-color
  • icon fill: toolbar-button-color
  • Files to change

secondary, rest

  • bg fill: none
  • icon fill: none
  • icon and button outline: toolbar-button-color

secondary, hover

  • bg fill: none
  • icon fill: none
  • icon and button outline: button-background-active-color

secondary, active

  • bg fill: button-background-active-color
  • icon fill: toolbar-button-color
Files to change

Client > styles > _toolbar.scss

Classes: .toolbar__play-button and .toolbar__stop-button

Under “&:disabled”:

  • Remove the fill
  • Change the outline to the themify variable button-background-active-color

Client > styles > abstracts > _placeholders.scss

%toolbar-button

  • May need to make some changes here to the outline or fill so the square/triangle in the button has an outline of button-background-active-color
  • Make sure that this does not affect the other toolbar buttons
PR Criteria
  • Provide screenshots in your PR of the visual changes implemented
  • Provide quality assurance steps for how reviewers can ensure your changes are made properly
  • Ensure that changes to not alter other toolbar buttons

Additional Resources:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.