Skip to content

[Image] Transparent Images in Dark Mode #887

@xinemata

Description

@xinemata

Title

[Image] Transparent Images in Dark Mode

Description

In dark mode, images with transparent backgrounds may not be visible.

Steps to Reproduce

  1. Go to https://p5js.org/contribute/fes_contribution_guide/
  2. Locate the Accessibility drop-down menu, select Dark Mode
  3. Image

Actual Behavior

The transparent image is barely visible in dark mode.

Expected Behavior

Image content and background color should have a minimum of 4.5:1 contrast ratio.

Environments

Browser & Version: Chrome 138
Operating System & Version: macOS 15.1

Suggested Fix

  • Possibly update CSS to apply invert() to dark mode images
  • Or ensure that images on the website don't have a transparent background

Reference

1.4.3 Contrast (Minimum) Level AA

What is your operating system?

Mac OS

Web browser and version

Chrome 138

Metadata

Metadata

Assignees

Labels

Accessibility: High SeverityWeb accessibility issues that have a significant negative impact on usersGood First IssueGood for newcomersHelp WantedExtra attention is needed

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions