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

Dark Theme Fixes #10416

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Dark Theme Fixes #10416

wants to merge 9 commits into from

Conversation

thsparks
Copy link
Contributor

@thsparks thsparks commented Mar 8, 2025

Fixes some of the dark theme issues spotted in testing today. Generally speaking, each commit = 1 issue (though some are split in arcade changes too: microsoft/pxt-arcade#6785).

Fixes microsoft/pxt-arcade#6781
Fixes microsoft/pxt-arcade#6762
Fixes microsoft/pxt-arcade#6763
Fixes microsoft/pxt-arcade#6774
Fixes microsoft/pxt-arcade#6778

Also fixes input fields in report abuse and the dropdown menu for choosing hardware.

Upload Target: https://arcade.makecode.com/app/5711563fab6ebb9e9bae48fac06f5fed01f9053d-867f791e15

@thsparks thsparks requested a review from a team March 8, 2025 00:31
@@ -121,7 +121,7 @@ class AssetGalleryImpl extends React.Component<AssetGalleryProps, AssetGallerySt
<AssetTopbar />
<div className={`asset-editor-card-list ${view !== GalleryView.User ? "hidden" : ""}`}>
<AssetCardList assets={filterAssets(userAssets, isBlocksProject)}>
<Button className="create-new inverted"
<Button className="create-new"
Copy link
Contributor

Choose a reason for hiding this comment

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

If I'm understanding your commit comment correctly, this fix is supposed to address microsoft/pxt-arcade#6780. I'm not sure if this fixes the problem in the regular dark theme, but it's still broken in high contrast on the upload target. Sorry if this is unrelated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a different bug. This is actually compensating for the fix for microsoft/pxt-arcade#6775. That bug required an override in arcade-dark css for inverted buttons (see microsoft/pxt-arcade#6785), but that override was also affecting these buttons, which was undesirable.

Ultimately, the inverted class here is unnecessary because the colors are set directly for them, anyway. So the simplest fix is just to remove the inverted class from these elements altogether.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, interesting! Thanks for the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants