Skip to content

Commit

Permalink
Fixes for Windows high contrast modes (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert authored Nov 22, 2024
1 parent 1331735 commit 515fac4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/components/AppLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ const AppLogo = ({ color = "#FFF", ...props }: AppLogoProps) => {
userSelect="none"
transform="scale(0.93)"
transformOrigin="left"
color="white"
{...props}
>
{OrgLogo && (
<>
<OrgLogo color="white" />
<OrgLogo />
<Divider
aria-hidden
borderColor={color}
Expand All @@ -27,7 +28,7 @@ const AppLogo = ({ color = "#FFF", ...props }: AppLogoProps) => {
/>
</>
)}
<AppLogo h="19px" color="white" />
<AppLogo h="19px" />
</HStack>
);
};
Expand Down
3 changes: 2 additions & 1 deletion src/components/DataSamplesMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ const DataSamplesMenu = () => {
aria-label={intl.formatMessage({
id: "data-actions-menu",
})}
color="gray.800"
variant="ghost"
icon={<Icon as={MdMoreVert} color="gray.800" boxSize={7} />}
icon={<Icon as={MdMoreVert} boxSize={7} />}
isRound
/>
<Portal>
Expand Down
3 changes: 2 additions & 1 deletion src/components/DefaultPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ export const HomeToolbarItem = () => {
return (
<IconButton
onClick={handleHomeClick}
icon={<RiHome2Line size={24} color="white" />}
color="white"
icon={<RiHome2Line size={24} />}
aria-label={intl.formatMessage({ id: "homepage" })}
variant="plain"
size="lg"
Expand Down
3 changes: 2 additions & 1 deletion src/components/HelpMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const HelpMenu = ({ ...rest }: HelpMenuProps) => {
fontSize="2xl"
h={12}
w={12}
icon={<RiQuestionLine fill="white" size={24} />}
color="white"
icon={<RiQuestionLine size={24} />}
variant="plain"
isRound
_focusVisible={{
Expand Down
3 changes: 2 additions & 1 deletion src/components/SettingsMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ const SettingsMenu = () => {
aria-label={intl.formatMessage({ id: "settings-menu-action" })}
size="lg"
fontSize="2xl"
icon={<RiSettings2Line fill="white" size={24} />}
color="white"
icon={<RiSettings2Line size={24} />}
variant="plain"
isRound
h={12}
Expand Down
3 changes: 2 additions & 1 deletion src/components/ToolbarMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const ToolbarMenu = ({
<MenuButton
as={IconButton}
aria-label={label}
icon={icon ?? <RiMenuLine size={24} color="white" />}
color="white"
icon={icon ?? <RiMenuLine size={24} />}
variant={variant}
size="lg"
fontSize="xl"
Expand Down

0 comments on commit 515fac4

Please sign in to comment.