Skip to content

Commit d18af42

Browse files
added Accessibility changes for Client 360 profile
1 parent 0e4acec commit d18af42

File tree

7 files changed

+21
-4
lines changed

7 files changed

+21
-4
lines changed

ClientAdvisor/App/frontend/src/components/Cards/Cards.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040

4141
.userCardContainer.selected {
42-
background-color: #0078D7;
42+
background-color: #0F6CBD;
4343
color: white;
4444
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.14), 0px 0px 2px 0px rgba(0, 0, 0, 0.12);
4545
}

ClientAdvisor/App/frontend/src/components/QuestionInput/QuestionInput.module.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,12 @@
6262
left: 16.5%;
6363
}
6464
}
65+
66+
@media screen and (-ms-high-contrast: active), (forced-colors: active) {
67+
68+
.questionInputContainer{
69+
border: 2px solid WindowText;
70+
background-color: Window;
71+
color: WindowText;
72+
}
73+
}

ClientAdvisor/App/frontend/src/components/UserCard/UserCard.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030

3131
.selected {
32-
background-color: #0078D7;
32+
background-color: #0F6CBD;
3333
color: white !important;
3434
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.14), 0px 0px 2px 0px rgba(0, 0, 0, 0.12);
3535
}

ClientAdvisor/App/frontend/src/components/UserCard/UserCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const UserCard: React.FC<UserCardProps> = ({
5050
<div tabIndex={0} className={`${styles.userInfo} ${isSelected ? styles.selected : ''}`} onClick={onCardClick} onKeyDown={(e) => {
5151
if (e.key === 'Enter' || e.key === ' ') {
5252
e.preventDefault(); // Prevent the default action like scrolling.
53-
handleShowMoreClick(e); // Call the same function as onClick.
53+
onCardClick(); // Call the same function as onClick.
5454
}
5555
}}>
5656
<div className={styles.clientName}>{ClientName}</div>

ClientAdvisor/App/frontend/src/pages/layout/Layout.module.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@
179179
height: 100%; */
180180
display: flex;
181181
flex-direction: column;
182+
padding-top : 10px ;
182183
}
183184

184185
.pivotContainer > div {
@@ -316,4 +317,11 @@
316317
background-color: Window;
317318
color: WindowText;
318319
}
320+
321+
.selectedName{
322+
border-radius:25px;
323+
border: 2px solid WindowText;
324+
background-color: Window;
325+
color: WindowText;
326+
}
319327
}

ClientAdvisor/App/frontend/src/pages/layout/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ const Layout = () => {
212212
<span className={styles.selectedName}>{selectedUser ? selectedUser.ClientName : 'None'}</span>
213213
</div>
214214
)}
215-
<Pivot defaultSelectedKey="chat">
215+
<Pivot defaultSelectedKey="chat" className='tabContainer' style={{ paddingTop : 10 }}>
216216
<PivotItem headerText="Chat" itemKey="chat">
217217
<Chat setIsVisible={setIsVisible}/>
218218
</PivotItem>
Binary file not shown.

0 commit comments

Comments
 (0)