Skip to content

Commit 68bbcfa

Browse files
Fix dark mode text visibility in ActivityList component
1 parent 2b04e4e commit 68bbcfa

3 files changed

Lines changed: 138 additions & 1 deletion

File tree

public/index.css

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,68 @@ body.bm-dashboard-dark .page-item.active .page-link {
328328
color: #ffffff !important;
329329
}
330330

331+
/* Activity List Dark Mode Overrides */
332+
body.dark-mode .activity-list-container,
333+
body.bm-dashboard-dark .activity-list-container {
334+
background-color: #1b2a41 !important;
335+
color: #ffffff !important;
336+
}
337+
338+
body.dark-mode .activity-list-container h1,
339+
body.bm-dashboard-dark .activity-list-container h1 {
340+
color: #ffffff !important;
341+
}
342+
343+
body.dark-mode .activity-list-container input,
344+
body.bm-dashboard-dark .activity-list-container input {
345+
background-color: #3a506b !important;
346+
border-color: #4a6072 !important;
347+
color: #ffffff !important;
348+
}
349+
350+
body.dark-mode .activity-list-container input::placeholder,
351+
body.bm-dashboard-dark .activity-list-container input::placeholder {
352+
color: #b8c5d1 !important;
353+
}
354+
355+
body.dark-mode .activity-list-container label,
356+
body.bm-dashboard-dark .activity-list-container label {
357+
color: #ffffff !important;
358+
}
359+
360+
body.dark-mode .activity-list-container ul li,
361+
body.bm-dashboard-dark .activity-list-container ul li {
362+
background-color: #3a506b !important;
363+
border-color: #4a6072 !important;
364+
color: #ffffff !important;
365+
}
366+
367+
body.dark-mode .activity-list-container ul li strong,
368+
body.bm-dashboard-dark .activity-list-container ul li strong {
369+
color: #ffffff !important;
370+
}
371+
372+
body.dark-mode .activity-list-container ul li span,
373+
body.bm-dashboard-dark .activity-list-container ul li span {
374+
color: #d1d8e0 !important;
375+
}
376+
377+
body.dark-mode .activity-list-container button,
378+
body.bm-dashboard-dark .activity-list-container button {
379+
color: #ffffff !important;
380+
background: transparent !important;
381+
}
382+
383+
body.dark-mode .activity-list-container .activity-item,
384+
body.bm-dashboard-dark .activity-list-container .activity-item {
385+
color: #ffffff !important;
386+
}
387+
388+
body.dark-mode .activity-list-container p,
389+
body.bm-dashboard-dark .activity-list-container p {
390+
color: #ffffff !important;
391+
}
392+
331393
/* Fix the position of the header at the top */
332394
.top {
333395
position: fixed;

src/components/CommunityPortal/Activities/ActivityList.module.css

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,81 @@
9696
margin: 20px 0;
9797
}
9898

99+
/* Dark Mode Styles */
100+
:global(body.dark-mode) .body,
101+
:global(body.bm-dashboard-dark) .body {
102+
background-color: #1b2a41 !important;
103+
color: #ffffff !important;
104+
}
105+
106+
:global(body.dark-mode) .h1,
107+
:global(body.bm-dashboard-dark) .h1 {
108+
color: #ffffff !important;
109+
}
110+
111+
:global(body.dark-mode) .filters,
112+
:global(body.bm-dashboard-dark) .filters {
113+
background: #2e5061 !important;
114+
color: #ffffff !important;
115+
}
116+
117+
:global(body.dark-mode) .filters label,
118+
:global(body.bm-dashboard-dark) .filters label {
119+
color: #ffffff !important;
120+
}
121+
122+
:global(body.dark-mode) .filters input,
123+
:global(body.bm-dashboard-dark) .filters input {
124+
background-color: #3a506b !important;
125+
border-color: #4a6072 !important;
126+
color: #ffffff !important;
127+
}
128+
129+
:global(body.dark-mode) .filters input::placeholder,
130+
:global(body.bm-dashboard-dark) .filters input::placeholder {
131+
color: #b8c5d1 !important;
132+
}
133+
134+
:global(body.dark-mode) .activityList,
135+
:global(body.bm-dashboard-dark) .activityList {
136+
background: #2e5061 !important;
137+
color: #ffffff !important;
138+
}
139+
140+
:global(body.dark-mode) .activityList li,
141+
:global(body.bm-dashboard-dark) .activityList li {
142+
background-color: #3a506b !important;
143+
border-color: #4a6072 !important;
144+
color: #ffffff !important;
145+
}
146+
147+
:global(body.dark-mode) .activityList li strong,
148+
:global(body.bm-dashboard-dark) .activityList li strong {
149+
color: #ffffff !important;
150+
}
151+
152+
:global(body.dark-mode) .activityList li span,
153+
:global(body.bm-dashboard-dark) .activityList li span {
154+
color: #d1d8e0 !important;
155+
}
156+
157+
:global(body.dark-mode) .activityList p,
158+
:global(body.bm-dashboard-dark) .activityList p {
159+
color: #ffffff !important;
160+
}
161+
162+
:global(body.dark-mode) .activityItem,
163+
:global(body.bm-dashboard-dark) .activityItem {
164+
color: #ffffff !important;
165+
background: transparent !important;
166+
border: none !important;
167+
}
168+
169+
:global(body.dark-mode) .feedbackText,
170+
:global(body.bm-dashboard-dark) .feedbackText {
171+
color: #b8c5d1 !important;
172+
}
173+
99174
@media (max-width: 768px) {
100175
.filters {
101176
flex-direction: column;

src/components/UserProfile/TeamsAndProjects/UserTeamsTable.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { AutoCompleteTeamCode } from './AutoCompleteTeamCode';
1313

1414
import ToggleSwitch from '../UserProfileEdit/ToggleSwitch';
1515

16-
import './../../Teams/Team.css';
16+
import './../../Teams/Team.module.css';
1717
import { TeamMember } from './TeamMember';
1818
import axios from 'axios';
1919
import { ENDPOINTS } from '~/utils/URL.js';

0 commit comments

Comments
 (0)