Skip to content

Checkerboard background in asset editor should always be dark #13927

@daun

Description

@daun

Bug description

When editing an image with transparency, the checkerboard background is either white or black, depending on the current dark/light mode. While that makes sense in the asset grid, where the background is also either light or dark, the asset editor background is always black, so the checkerboard should also always be black.

Editor

Changes depending on mode but does not blend into background.

Image Image

Grid

Changes depending on mode and blends into background. 👌

Image Image

How to reproduce

  • Upload a PNG with alpha channel
  • Compare asset grid and editor display while toggling dark/light mode

Environment

Statamic 6.2.5

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions