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

Accessibility compliance: arcade color changes #10019

Merged
merged 3 commits into from
May 24, 2024

Conversation

srietkerk
Copy link
Contributor

Related to the changes with this PR: microsoft/pxt-arcade#6425
There are some parts of the colors that needed to be changed in pxt rather than just arcade. The asset editor and skillmap styling is defined in pxt, so I needed to change colors here for those things.

@srietkerk srietkerk requested a review from a team May 22, 2024 22:11
Copy link
Contributor

@thsparks thsparks left a comment

Choose a reason for hiding this comment

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

One question, I don't think it's blocking

@@ -136,7 +136,7 @@ export class CodeCardView extends data.Component<CodeCardProps, CodeCardState> {
}
</div> : undefined}
{card.time ? <div className="meta">
{card.tutorialLength ? <span className={`ui tutorial-progress ${tutorialDone ? "green" : "orange"} left floated label`}><i className={`${tutorialDone ? "trophy" : "circle"} icon`}></i>&nbsp;{lf("{0}/{1}", (card.tutorialStep || 0) + 1, card.tutorialLength)}</span> : undefined}
{card.tutorialLength ? <span className={`ui tutorial-progress ${tutorialDone ? "green" : "purple"} left floated label`}><i className={`${tutorialDone ? "trophy" : "circle"} icon`}></i>&nbsp;{lf("{0}/{1}", (card.tutorialStep || 0) + 1, card.tutorialLength)}</span> : undefined}
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm trying to figure out where this component is. A little surprised we had it hard-coded to orange before and not theme-specific. Is it only on skillmaps?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the progress indicator in the cards on the home page.
tutorial-progress

I was also shocked that this was hard coded to orange. It was just handled in micro:bit to have a style override for the .orange class and set the color to purple. It looks like Minecraft does something a bit different and doesn't rely on the class being orange to set the style. I looked into accessing the "secondaryColor" less variable and then plugging the calculated color into the class here, but I couldn't find a nice way to do it, so I just put purple here instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

Huh, interesting. Thanks for the info!

@srietkerk srietkerk merged commit e7e5e54 into master May 24, 2024
6 checks passed
@srietkerk srietkerk deleted the srietkerk/arcade-color-changes branch May 24, 2024 22:18
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