File tree Expand file tree Collapse file tree 5 files changed +61
-11
lines changed
Expand file tree Collapse file tree 5 files changed +61
-11
lines changed Original file line number Diff line number Diff line change 6565 height : 24px ;
6666 margin-bottom : 12px ;
6767 }
68-
68+
6969 .microphoneAndSendContainer {
7070 display : flex;
7171 flex-direction : column;
7272 align-items : center;
7373 margin-right : 12px ;
7474 margin-top : 25px ;
7575 }
76+
77+
78+ /* High contrast mode specific styles */
79+ @media screen and (-ms-high-contrast : active), (forced-colors : active) {
80+ .questionInputContainer {
81+ border : 2px solid WindowText;
82+ margin-bottom : 10px ;
83+ padding : 5px ;
84+ background-color : Window;
85+ color : WindowText;
86+ }
87+ }
Original file line number Diff line number Diff line change 308308 font-size : 12px ;
309309 }
310310}
311+
312+ /* High contrast mode specific styles */
313+ @media screen and (-ms-high-contrast : active), (forced-colors : active) {
314+ .chatContainer {
315+ border : 2px solid WindowText;
316+ padding : 10px ;
317+ background-color : Window;
318+ color : WindowText;
319+ }
320+ }
321+
322+ @media screen and (max-width : 1280px ) {
323+ .clearChatBroom {
324+ left : -17px !important ;
325+ }
326+ }
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ const Chat = () => {
136136 setIsRecognizing ( true ) ;
137137
138138 recognizerRef . current = await multiLingualSpeechRecognizer ( ) ; // Store the recognizer in the ref
139-
139+
140140 recognizerRef . current . recognized = ( s , e ) => {
141141 if ( e . result . reason === ResultReason . RecognizedSpeech ) {
142142 const recognized = e . result . text ;
@@ -226,7 +226,7 @@ const Chat = () => {
226226 < div className = { `${ styles . chatContainer } ${ styles . MobileChatContainer } ` } >
227227 { ! lastQuestionRef . current ? (
228228 < Stack className = { styles . chatEmptyState } >
229- < img src = { Azure } className = { styles . chatIcon } aria-hidden = "true" />
229+ < img src = { Azure } className = { styles . chatIcon } aria-hidden = "true" alt = "Azure AI logo" />
230230 < h1 className = { styles . chatEmptyStateTitle } > Start chatting</ h1 >
231231 < h2 className = { styles . chatEmptyStateSubtitle } >
232232 This chatbot is configured to answer your questions
Original file line number Diff line number Diff line change 1+ body {
2+ font-size : 16px ; /* Use relative units */
3+ line-height : 1.5 ;
4+ margin : 0 ;
5+ padding : 0 ;
6+ }
7+
8+ .header , .footer {
9+ width : 100% ;
10+ max-width : 1200px ;
11+ padding : 1rem ;
12+ box-sizing : border-box;
13+ }
14+
115.layout {
216 display : flex;
317 flex-direction : column;
114128 display : flex;
115129 align-items : center;
116130 color : # 242424 ;
117- }
131+ }
132+
133+ @media screen and (-ms-high-contrast : active), (forced-colors : active) {
134+
135+ .shareButtonContainer {
136+ border : 2px solid WindowText;
137+ }
138+ }
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ const Layout = () => {
4040 src = { Azure }
4141 className = { styles . headerIcon }
4242 aria-hidden = "true"
43+ alt = "Azure AI logo"
4344 />
4445 < Link to = "/" className = { styles . headerTitleContainer } >
4546 < h3 className = { styles . headerTitle } > Azure AI</ h3 >
@@ -52,11 +53,11 @@ const Layout = () => {
5253 </ div >
5354 </ header >
5455 < Outlet />
55- < Dialog
56+ < Dialog
5657 onDismiss = { handleSharePanelDismiss }
5758 hidden = { ! isSharePanelOpen }
5859 styles = { {
59-
60+
6061 main : [ {
6162 selectors : {
6263 [ '@media (min-width: 480px)' ] : {
@@ -77,11 +78,11 @@ const Layout = () => {
7778 >
7879 < Stack horizontal verticalAlign = "center" style = { { gap : "8px" } } >
7980 < TextField className = { styles . urlTextBox } defaultValue = { window . location . href } readOnly />
80- < div
81- className = { styles . copyButtonContainer }
82- role = "button"
83- tabIndex = { 0 }
84- aria-label = "Copy"
81+ < div
82+ className = { styles . copyButtonContainer }
83+ role = "button"
84+ tabIndex = { 0 }
85+ aria-label = "Copy"
8586 onClick = { handleCopyClick }
8687 onKeyDown = { e => e . key === "Enter" || e . key === " " ? handleCopyClick ( ) : null }
8788 >
You can’t perform that action at this time.
0 commit comments