Skip to content

Is dark mode / alternative themes a consideration for auditing against WCAG contrast criterion #2889

Open
@dashouse

Description

@dashouse

Overview

When auditing a website (or app where relevant) are the criterion relating to Text and Non-text contrast passed when met by the default theme alone or should a failure in an alternative themes be considered a failure overall?

Considerations

User opt-in

A user can opt-in to dark mode in multiple ways.

Primarily these are:

  • Local setting on website or app - For example a switch that changes the UI theme of the local website only
  • Global OS setting - For example setting "dark mode" on OS level and providing alternative CSS via @media (prefers-color-scheme: dark) when available on any website or app

Automatic theme change

A non-opt in approach might be when an OS, App or Website applies an alternative theme based on light conditions or time of day. An example of this might be when using Google maps - The UI will transition from light to dark mode when driving through a tunnel or when darkness falls.

Assumptions

My assumptions are that, providing the method of switching meets Text and Non-text contrast in all themes AND the alternate themes are "opt-in", WCAG criterions would be considered met if only assessed against the default theme.

If themes are changed automatically without user interaction then all automatic themes must be assessed independently.

Any other considerations?

Are there any other considerations for contrast requirements for dark mode considering it is often considered lower contrast and can be used in conjunction with other user settings such as @media (prefers-contrast: more)?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions