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

OCV: add support for high contrast toggling #10377

Merged
merged 2 commits into from
Feb 10, 2025
Merged

Conversation

srietkerk
Copy link
Contributor

@srietkerk srietkerk commented Feb 8, 2025

As the title says, this makes it so when we switch to high contrast, we use a high contrast/dark themed version of OCV.

This is what it looks like toggled on:
(Image updated)
image

@srietkerk srietkerk requested a review from a team February 8, 2025 00:14
@@ -129,17 +130,17 @@ const getIFrameAndSend = (payload: FeedbackResponsePayloadType) => {
// TODO
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can this TODO comment be deleted now?

@@ -48,10 +48,12 @@ type FeedbackResponsePayloadType = {
data: FeedbackResponseDataType
}

const defaultTheme = "PublisherLightTheme";
const highContrastTheme = "PublisherDarkTheme";
Copy link
Contributor

Choose a reason for hiding this comment

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

As a curiosity, do they document this as an actual high contrast theme? Or just as a dark theme?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, just a dark theme. I just saw the teams high contrast one. I will use that one instead.

@srietkerk srietkerk merged commit d3b668f into master Feb 10, 2025
6 checks passed
@srietkerk srietkerk deleted the srietkerk/ocv-theming branch February 10, 2025 19:15
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