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

Avoid setting color-scheme on :root, we're only a guest on pages #1923

Merged
merged 2 commits into from
May 27, 2024

Conversation

matthiask
Copy link
Member

@matthiask matthiask commented May 27, 2024

Fixes #1922.

Checklist:

  • I have added the relevant tests for this change.
  • I have added an item to the Pending section of docs/changes.rst.

@matthiask matthiask merged commit 4808add into jazzband:main May 27, 2024
25 checks passed
@matthiask matthiask deleted the issue-1922 branch May 27, 2024 10:47
@@ -58,7 +56,6 @@
}

#djDebug[data-theme="dark"] {
color-scheme: dark;
Copy link
Contributor

Choose a reason for hiding this comment

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

Couldn't this one have stayed?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought about it and I'm not sure what it even does since we're basically specifying all colors and backgrounds. Yes, it could stay, but then we'd also have to set the opposite on #djDebug[data-theme="light"] (I think)

The bigger point here is that while I do have much experience with CSS generally I don't really know how the color-scheme property behaves, and it felt safer to just remove it at this time.

Copy link
Contributor

Choose a reason for hiding this comment

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

Alright that's fair.

Copy link
Member Author

Choose a reason for hiding this comment

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

Btw, sorry for pressing ahead, I wanted to release a better version quickly instead of waiting for more reports.

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.

Version 4.4.1 changes the look of DRF browsable API
2 participants