Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!(w3c/style): override color-scheme with meta tag #4700

Merged
merged 12 commits into from
Apr 28, 2024
Merged

Conversation

marcoscaceres
Copy link
Contributor

@marcoscaceres marcoscaceres commented Apr 24, 2024

Removes the opt in respecConfig.darkMode option, allowing HTML's meta tag to be used instead.

src/w3c/style.js Outdated Show resolved Hide resolved
@sidvishnoi
Copy link
Member

sidvishnoi commented Apr 24, 2024

Let's still keep this behind darkMode flag for a while? It was added to prevent specs that use custom styles to opt-in to prevent breaks.

@marcoscaceres
Copy link
Contributor Author

marcoscaceres commented Apr 25, 2024

I still don’t feel that a configuration flag is the right approach. It should then be we inject the meta to default to “light”, allowing spec authors to then opt into light/dark.

Then the transitional path is that we announce this, and give everyone a year to check their specs before switching to light/dark.

@marcoscaceres
Copy link
Contributor Author

Should be good to go now, @sidvishnoi.

src/w3c/style.js Outdated Show resolved Hide resolved
@sidvishnoi sidvishnoi changed the title fix!(w3c/style): user overridable color-scheme fix!(w3c/style): override color-scheme with meta tag Apr 28, 2024
@sidvishnoi sidvishnoi merged commit 33bbcff into main Apr 28, 2024
8 checks passed
@sidvishnoi sidvishnoi deleted the color-scheme branch April 28, 2024 15:10
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