Skip to content

Transfer data-scheme attributes to color-scheme css props#92

Merged
drzax merged 1 commit intomainfrom
better-colour-scheme-support
Jan 22, 2026
Merged

Transfer data-scheme attributes to color-scheme css props#92
drzax merged 1 commit intomainfrom
better-colour-scheme-support

Conversation

@drzax
Copy link
Member

@drzax drzax commented Jan 22, 2026

We've supported Presentation Layer's custom colour scheme attributes in Odyssey for some time, but these should also be expressed as CSS color-scheme properties to ensure descendent elements understand their environment.

This will let us, for example, rely on web-standard colour scheme support mechanics for iframe embeds which have colour scheme support defined.

@github-actions
Copy link

Playwright visual snapshot differences were detected.

View the Playwright report to review the visual differences.
To approve the snapshot changes and update the snapshots, please comment: /approve-snapshots

@drzax
Copy link
Member Author

drzax commented Jan 22, 2026

/approve-snapshots

@github-actions
Copy link

Updating snapshots. Click here to see the status.

@github-actions
Copy link

📸 Successfully updated and committed Playwright snapshots!

@github-actions
Copy link

Playwright visual snapshot differences were detected.

View the Playwright report to review the visual differences.
To approve the snapshot changes and update the snapshots, please comment: /approve-snapshots

@drzax drzax force-pushed the better-colour-scheme-support branch from d8fd653 to 8b322cc Compare January 22, 2026 03:34
Copy link
Member

@AshKyd AshKyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm. Yeah I think we'd need this for the iframe transparency to work anyway. Good call.

@drzax drzax merged commit 0561d1c into main Jan 22, 2026
1 check passed
@drzax drzax deleted the better-colour-scheme-support branch January 22, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants