diff --git a/code/frontend/src/components/QuestionInput/QuestionInput.module.css b/code/frontend/src/components/QuestionInput/QuestionInput.module.css index 60a03735d..5125cd984 100644 --- a/code/frontend/src/components/QuestionInput/QuestionInput.module.css +++ b/code/frontend/src/components/QuestionInput/QuestionInput.module.css @@ -65,7 +65,7 @@ height: 24px; margin-bottom: 12px; } - + .microphoneAndSendContainer { display: flex; flex-direction: column; @@ -73,3 +73,15 @@ margin-right: 12px; margin-top: 25px; } + + + /* High contrast mode specific styles */ +@media screen and (-ms-high-contrast: active), (forced-colors: active) { + .questionInputContainer{ + border: 2px solid WindowText; + margin-bottom: 10px; + padding: 5px; + background-color: Window; + color: WindowText; + } +} diff --git a/code/frontend/src/pages/chat/Chat.module.css b/code/frontend/src/pages/chat/Chat.module.css index 9948c0161..19ebec61d 100644 --- a/code/frontend/src/pages/chat/Chat.module.css +++ b/code/frontend/src/pages/chat/Chat.module.css @@ -308,3 +308,19 @@ font-size: 12px; } } + + /* High contrast mode specific styles */ + @media screen and (-ms-high-contrast: active), (forced-colors: active) { + .chatContainer { + border: 2px solid WindowText; + padding: 10px; + background-color: Window; + color: WindowText; + } +} + +@media screen and (max-width: 1280px) { + .clearChatBroom { + left: -17px !important; + } +} diff --git a/code/frontend/src/pages/chat/Chat.tsx b/code/frontend/src/pages/chat/Chat.tsx index b0fb1b524..2ac94871e 100644 --- a/code/frontend/src/pages/chat/Chat.tsx +++ b/code/frontend/src/pages/chat/Chat.tsx @@ -136,7 +136,7 @@ const Chat = () => { setIsRecognizing(true); recognizerRef.current = await multiLingualSpeechRecognizer(); // Store the recognizer in the ref - + recognizerRef.current.recognized = (s, e) => { if (e.result.reason === ResultReason.RecognizedSpeech) { const recognized = e.result.text; @@ -226,7 +226,7 @@ const Chat = () => {