From 554d2e32f9ce84a4c040b0e009cd66bd094f4d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Mon, 13 May 2024 11:53:46 +0100 Subject: [PATCH] fix(a11y): Add support for Windows high contrast mode --- editor.planx.uk/src/theme.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/editor.planx.uk/src/theme.ts b/editor.planx.uk/src/theme.ts index f1b4cf53f3..d42b363b88 100644 --- a/editor.planx.uk/src/theme.ts +++ b/editor.planx.uk/src/theme.ts @@ -260,6 +260,13 @@ const getThemeOptions = ({ padding: 0, border: 0, }, + img: { + // a11y: Ensure images are visible in Windows high contrast mode + "@media (forced-colors: active)": { + forcedColorAdjust: "none", + backgroundColor: "white", + }, + }, }, }, MuiButtonBase: {