Skip to content

Conversation

@microbit-matt-hillsdon
Copy link
Contributor

@microbit-matt-hillsdon microbit-matt-hillsdon commented Jun 19, 2025

This fixes the icon in MakeCode's nascent dark theme, which sets color to white at a high level in the DOM which is then used on semi-transparent white here via currentColor. Seems reasonable to hardcode the foreground if we do so for the white background.

Example of broken state in MakeCode:

image

If there are further styling demands here then a CSS class on the group might be helpful. Having said that, I think this icon looks OK in dark and light modes as-is.

This fixes it in MakeCode's dark theme that sets color to white at a high level in the DOM which is then used on semi-transparent white here via currentColor.
Seems reasonable to hardcoded the foreground if we do so for the background.
@microbit-matt-hillsdon microbit-matt-hillsdon requested a review from a team as a code owner June 19, 2025 13:50
@microbit-matt-hillsdon microbit-matt-hillsdon requested review from cpcallen and removed request for a team June 19, 2025 13:50
@cpcallen cpcallen requested a review from gonfunko June 19, 2025 16:38
@cpcallen
Copy link
Collaborator

@gonfunko: Can you take a look at this? I'm not quite sure why you used currentColor here, so I'm not sure if it's safe to change it.

(Also, tsk for misspelling "colour" ;-)

@gonfunko gonfunko merged commit 8e2b18e into RaspberryPiFoundation:main Jun 23, 2025
8 checks passed
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.

3 participants