From 515fac47bc8dc7413912f3e0bb49ea36578b92ad Mon Sep 17 00:00:00 2001
From: Robert Knight <95928279+microbit-robert@users.noreply.github.com>
Date: Fri, 22 Nov 2024 10:17:03 +0000
Subject: [PATCH] Fixes for Windows high contrast modes (#545)
---
src/components/AppLogo.tsx | 5 +++--
src/components/DataSamplesMenu.tsx | 3 ++-
src/components/DefaultPageLayout.tsx | 3 ++-
src/components/HelpMenu.tsx | 3 ++-
src/components/SettingsMenu.tsx | 3 ++-
src/components/ToolbarMenu.tsx | 3 ++-
6 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/src/components/AppLogo.tsx b/src/components/AppLogo.tsx
index 6af0b277c..981079891 100644
--- a/src/components/AppLogo.tsx
+++ b/src/components/AppLogo.tsx
@@ -13,11 +13,12 @@ const AppLogo = ({ color = "#FFF", ...props }: AppLogoProps) => {
userSelect="none"
transform="scale(0.93)"
transformOrigin="left"
+ color="white"
{...props}
>
{OrgLogo && (
<>
-
+
{
/>
>
)}
-
+
);
};
diff --git a/src/components/DataSamplesMenu.tsx b/src/components/DataSamplesMenu.tsx
index 01ac2bcac..6430e30de 100644
--- a/src/components/DataSamplesMenu.tsx
+++ b/src/components/DataSamplesMenu.tsx
@@ -112,8 +112,9 @@ const DataSamplesMenu = () => {
aria-label={intl.formatMessage({
id: "data-actions-menu",
})}
+ color="gray.800"
variant="ghost"
- icon={}
+ icon={}
isRound
/>
diff --git a/src/components/DefaultPageLayout.tsx b/src/components/DefaultPageLayout.tsx
index 66ef66704..5553d0d09 100644
--- a/src/components/DefaultPageLayout.tsx
+++ b/src/components/DefaultPageLayout.tsx
@@ -223,7 +223,8 @@ export const HomeToolbarItem = () => {
return (
}
+ color="white"
+ icon={}
aria-label={intl.formatMessage({ id: "homepage" })}
variant="plain"
size="lg"
diff --git a/src/components/HelpMenu.tsx b/src/components/HelpMenu.tsx
index af9c08fb8..f135f4901 100644
--- a/src/components/HelpMenu.tsx
+++ b/src/components/HelpMenu.tsx
@@ -47,7 +47,8 @@ const HelpMenu = ({ ...rest }: HelpMenuProps) => {
fontSize="2xl"
h={12}
w={12}
- icon={}
+ color="white"
+ icon={}
variant="plain"
isRound
_focusVisible={{
diff --git a/src/components/SettingsMenu.tsx b/src/components/SettingsMenu.tsx
index da990115a..f7bf51ff2 100644
--- a/src/components/SettingsMenu.tsx
+++ b/src/components/SettingsMenu.tsx
@@ -28,7 +28,8 @@ const SettingsMenu = () => {
aria-label={intl.formatMessage({ id: "settings-menu-action" })}
size="lg"
fontSize="2xl"
- icon={}
+ color="white"
+ icon={}
variant="plain"
isRound
h={12}
diff --git a/src/components/ToolbarMenu.tsx b/src/components/ToolbarMenu.tsx
index 12898ee76..07bbaf540 100644
--- a/src/components/ToolbarMenu.tsx
+++ b/src/components/ToolbarMenu.tsx
@@ -30,7 +30,8 @@ const ToolbarMenu = ({
}
+ color="white"
+ icon={icon ?? }
variant={variant}
size="lg"
fontSize="xl"