Skip to content

Commit 87c4b83

Browse files
author
RoshiniSeelamsetty
committed
fix: (PRIORITY HIGH) Yagna: Volunteer Hours Distribution Chart Shows Incorrect Totals and Misleading Visualization
1 parent 6dfd7e3 commit 87c4b83

2 files changed

Lines changed: 37 additions & 27 deletions

File tree

src/components/TotalOrgSummary/AccordianWrapper/AccordianWrapper.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
}
3636
:global(.Collapsible__trigger:before) {
3737
display: inline-block;
38-
content: '▾';
38+
font-family: 'FontAwesome', sans-serif;
39+
content: '\f107';
3940
margin-right: 40px;
4041
transition: transform 300ms;
41-
font-size: 34px;
42-
color: currentColor;
43-
opacity: 0.7;
42+
font-size: 45px;
43+
color: #ccc;
4444
font-weight: normal;
4545
}
4646
:global(.Collapsible__trigger.is-open:before) {

src/components/TotalOrgSummary/TotalOrgSummary.module.css

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1+
/* stylelint-disable no-descending-specificity */
2+
13
/* Chart labels stay dark in dark mode for readability against light label chips */
24
.containerTotalOrgWrapper:global(.bg-oxford-blue) .componentContainer .recharts-wrapper text,
35
.containerTotalOrgWrapper:global(.bg-oxford-blue) .componentContainer .recharts-wrapper tspan {
46
fill: #000 !important;
57
color: #000 !important;
6-
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25), 0 0 2px #fff;
8+
text-shadow: 1px 1px 3px rgb(0 0 0 / 25%), 0 0 2px #fff;
79
}
10+
811
/* Chart and graph titles/text should be white in dark mode for visibility */
912
.containerTotalOrgWrapper:global(.bg-oxford-blue) .componentContainer h3,
1013
.containerTotalOrgWrapper:global(.bg-oxford-blue) .componentContainer p,
1114
.containerTotalOrgWrapper:global(.bg-oxford-blue) .componentContainer .totalOrgChartTitle,
1215
.containerTotalOrgWrapper:global(.bg-oxford-blue) .componentContainer .volunteerStatusGrid h3 {
1316
color: #fff !important;
1417
}
18+
1519
.containerTotalOrgWrapper {
1620
min-height: 100%;
1721
background-color: #fff;
@@ -109,13 +113,13 @@
109113
:global(.dropdown-toggle):hover {
110114
background-color: #5a359a !important;
111115
transform: translateY(-2px) !important;
112-
box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4) !important;
116+
box-shadow: 0 4px 12px rgb(111 66 193 / 40%) !important;
113117
}
114118

115119
.containerTotalOrgWrapper:global(.bg-oxford-blue) .reportHeaderActions :global(.dropdown-menu) {
116120
background-color: #34495e !important;
117121
border: 1px solid #6f42c1 !important;
118-
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
122+
box-shadow: 0 8px 25px rgb(0 0 0 / 30%) !important;
119123
}
120124

121125
.containerTotalOrgWrapper:global(.bg-oxford-blue) .reportHeaderActions :global(.dropdown-item) {
@@ -135,13 +139,13 @@
135139
.containerTotalOrgWrapper:global(.bg-oxford-blue) .reportHeaderActions button {
136140
background-color: #007bff !important;
137141
color: white !important;
138-
box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3) !important;
142+
box-shadow: 0 2px 6px rgb(0 123 255 / 30%) !important;
139143
}
140144

141145
.containerTotalOrgWrapper:global(.bg-oxford-blue) .reportHeaderActions button:hover {
142146
background-color: #0056b3 !important;
143147
transform: translateY(-2px) !important;
144-
box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4) !important;
148+
box-shadow: 0 4px 12px rgb(0 123 255 / 40%) !important;
145149
}
146150

147151
.containerTotalOrgWrapper:global(.bg-oxford-blue) .componentContainer {
@@ -197,8 +201,8 @@
197201
.componentContainer
198202
:global(.hours-distribution-label-dark)
199203
tspan {
200-
fill: #111111 !important;
201-
color: #111111 !important;
204+
fill: #111 !important;
205+
color: #111 !important;
202206
}
203207

204208
.containerTotalOrgWrapper:global(.bg-oxford-blue)
@@ -208,8 +212,8 @@
208212
.componentContainer
209213
:global(.hours-distribution-label-light)
210214
tspan {
211-
fill: #ffffff !important;
212-
color: #ffffff !important;
215+
fill: #fff !important;
216+
color: #fff !important;
213217
}
214218

215219
.containerTotalOrgWrapper.bg-oxford-blue h3 {
@@ -218,7 +222,7 @@
218222

219223
.pageRow {
220224
width: 100% !important;
221-
margin: 1px 10px 15px 10px;
225+
margin: 1px 10px 15px;
222226
}
223227

224228
/* Header section styles */
@@ -267,8 +271,9 @@
267271

268272
/* Dark mode header styling */
269273
.containerTotalOrgWrapper:global(.bg-oxford-blue) .reportHeaderTitle h3 {
270-
color: #ffffff !important;
274+
color: #fff !important;
271275
}
276+
272277
.reportHeaderActions {
273278
display: flex;
274279
align-items: center;
@@ -299,18 +304,18 @@
299304
min-width: 120px !important;
300305
background-color: #6f42c1 !important;
301306
color: white !important;
302-
box-shadow: 0 2px 6px rgba(111, 66, 193, 0.3) !important;
307+
box-shadow: 0 2px 6px rgb(111 66 193 / 30%) !important;
303308
}
304309

305310
.reportHeaderActions :global(.dropdown-toggle):hover {
306311
background-color: #5a359a !important;
307312
transform: translateY(-2px) !important;
308-
box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4) !important;
313+
box-shadow: 0 4px 12px rgb(111 66 193 / 40%) !important;
309314
}
310315

311316
.reportHeaderActions :global(.dropdown-toggle):focus {
312317
outline: none !important;
313-
box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.3) !important;
318+
box-shadow: 0 0 0 3px rgb(111 66 193 / 30%) !important;
314319
}
315320

316321
/* Beautiful button styling */
@@ -328,35 +333,35 @@
328333
min-height: 44px !important;
329334
background-color: #007bff !important;
330335
color: white !important;
331-
box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3) !important;
336+
box-shadow: 0 2px 6px rgb(0 123 255 / 30%) !important;
332337
text-transform: none !important;
333338
letter-spacing: 0.3px !important;
334339
}
335340

336341
.reportHeaderActions button:hover {
337342
background-color: #0056b3 !important;
338343
transform: translateY(-2px) !important;
339-
box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4) !important;
344+
box-shadow: 0 4px 12px rgb(0 123 255 / 40%) !important;
340345
}
341346

342347
.reportHeaderActions button:disabled {
343348
background-color: #6c757d !important;
344349
cursor: not-allowed !important;
345350
opacity: 0.6 !important;
346351
transform: none !important;
347-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
352+
box-shadow: 0 2px 4px rgb(0 0 0 / 10%) !important;
348353
}
349354

350355
.reportHeaderActions button:focus {
351356
outline: none !important;
352-
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3) !important;
357+
box-shadow: 0 0 0 3px rgb(0 123 255 / 30%) !important;
353358
}
354359

355360
/* Enhanced dropdown menu styling */
356361
.reportHeaderActions :global(.dropdown-menu) {
357362
border: none !important;
358363
border-radius: 12px !important;
359-
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
364+
box-shadow: 0 8px 25px rgb(0 0 0 / 15%) !important;
360365
padding: 8px 0 !important;
361366
margin-top: 8px !important;
362367
min-width: 180px !important;
@@ -379,14 +384,15 @@
379384
}
380385

381386
/* Dark mode dropdown consistency */
387+
382388
/* Component containers - Clean borderless design */
383389
.componentContainer {
384-
margin: 0 0 15px 0;
390+
margin: 0 0 15px;
385391
padding: 20px;
386392
background-color: #fff;
387393
border-radius: 10px;
388394
border: 1.5px solid #e0e0e0;
389-
box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1), 0 1.5px 4px rgba(0, 0, 0, 0.08);
395+
box-shadow: 0 4px 16px rgb(37 99 235 / 10%), 0 1.5px 4px rgb(0 0 0 / 8%);
390396
height: 100%;
391397
display: flex;
392398
flex-direction: column;
@@ -397,7 +403,7 @@
397403
.componentBorder {
398404
border: 1.5px solid #e0e0e0;
399405
border-radius: 10px;
400-
box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1), 0 1.5px 4px rgba(0, 0, 0, 0.08);
406+
box-shadow: 0 4px 16px rgb(37 99 235 / 10%), 0 1.5px 4px rgb(0 0 0 / 8%);
401407
background-color: #fff;
402408
overflow: hidden;
403409
height: 100%;
@@ -410,10 +416,11 @@
410416
.componentBorderLoose {
411417
overflow: visible;
412418
}
419+
413420
.containerTotalOrgWrapper:global(.bg-oxford-blue) .componentBorder {
414421
background-color: #1c2541 !important;
415422
border: 1.5px solid #2f4157 !important;
416-
box-shadow: 0 4px 24px rgba(255, 255, 255, 0.13), 0 1.5px 4px rgba(255, 255, 255, 0.1) !important;
423+
box-shadow: 0 4px 24px rgb(255 255 255 / 13%), 0 1.5px 4px rgb(255 255 255 / 10%) !important;
417424
}
418425

419426
/* Grid layouts */
@@ -445,6 +452,7 @@
445452
}
446453

447454
/* Report Header Styles */
455+
448456
/* .totalOrgReportHeaderRow {
449457
display: flex;
450458
justify-content: space-between;
@@ -695,3 +703,5 @@
695703
padding-left: 1% !important;
696704
}
697705
}
706+
707+
/* stylelint-enable no-descending-specificity */

0 commit comments

Comments
 (0)