guardian / guardian/dotcom-rendering

Consider Passing Format And Dark Mode Into Interactive Elements And Atoms

Open
#10,500 0 comments 1 reaction 0 assignees View on GitHub
feature Interactives :chart_with_upwards_trend:
Dominant language
TypeScript
Stars
274
Forks
34
Avg merge
2d 22h
Merged PRs (30d)
121

Description

There are two ways of introducing interactive content into non-interactive articles:

1. Interactive atoms
2. Interactive elements

For 1) we already pass information about whether dark mode is supported as of #10298. There has been a suggestion from the Visuals team that it might be useful to also do something like this for 2). An additional suggestion was that we may want to pass `ArticleFormat` into both 1) and 2), so other variations of article design (like the backgrounds on analysis[^1] and comment[^2] pieces) could be handled.

[^1]: https://www.theguardian.com/tone/analysis
[^2]: https://www.theguardian.com/tone/comment

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.