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 for faulty reddit color-scheme implementation #653

Merged
merged 2 commits into from
Sep 30, 2022

Conversation

creesch
Copy link
Member

@creesch creesch commented Sep 30, 2022

Basically reddit implemented color-scheme to :root in a very weird way that basically ignores it. Turns out that we didn't explicitly did style some elements text color which then turned white and a few default html elements turned dark.

This PR makes toolbox's css more explicit and also disables any color-scheme for anything within tb-window popups or overlays.

Copy link
Member

@eritbh eritbh left a comment

Choose a reason for hiding this comment

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

thank you reddit very cool

}

body.mod-toolbox-rd.mod-toolbox-extra .tb-input:focus-visible,
Copy link
Member

@eritbh eritbh Sep 30, 2022

Choose a reason for hiding this comment

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

:focus-visible implies :focus, so this added selector is redundant and should change nothing; if the goal is to get :focus-visible behavior then the :focus option should be removed

@eritbh eritbh added the bug something isn't working label Sep 30, 2022
@eritbh eritbh added this to the v6.1.0 milestone Sep 30, 2022
@creesch creesch merged commit 1631892 into master Sep 30, 2022
@creesch creesch deleted the fix/reddit-color-scheme-weirdness branch September 30, 2022 19:32
eritbh pushed a commit that referenced this pull request Sep 5, 2024
* Fix for faulty reddit color-scheme implementation

* fix review comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants