Skip to content

Commit 37b2e9c

Browse files
Merge pull request #4499 from OneCommunityGlobal/Ajay-darkmode-longest-open-summarycards
Ajay fixed view, dark mode longest open issues
2 parents d903969 + 3de6a5d commit 37b2e9c

3 files changed

Lines changed: 369 additions & 476 deletions

File tree

src/components/BMDashboard/Issues/issueChart.module.css

Lines changed: 29 additions & 181 deletions
Original file line numberDiff line numberDiff line change
@@ -180,209 +180,57 @@
180180
color: #fca5a5;
181181
}
182182

183-
.chartContainer {
184-
width: 100%;
185-
height: 500px;
186-
}
187-
188-
/* Container for entire chart section */
189-
.issueChartContainer {
190-
width: 50vw; /* full viewport width */
191-
padding: 20px;
192-
box-sizing: border-box; /* include padding in width */
193-
background: #f9f9f9;
194-
border-radius: 8px;
195-
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
196-
}
197-
198-
199-
.filterCenterWrapper {
200-
max-width: 650px; /* filters centered and constrained */
201-
margin: 0 auto 20px auto;
202-
}
203-
204-
205-
.issueChartContainerDark {
206-
width: 50vw; /* full viewport width */
207-
padding: 20px;
208-
box-sizing: border-box; /* include padding in width */
209-
background: #121212;
210-
box-shadow: 0 4px 12px rgba(0,0,0,0.9);
211-
color: #ccd1dc;
212-
}
213-
214-
/* Chart title */
215-
.title {
216-
text-align: center;
217-
font-size: 24px;
218-
font-weight: bold;
219-
margin-bottom: 20px;
220-
color: #333;
221-
}
222-
223-
.titleDark {
224-
text-align: center;
225-
font-size: 24px;
226-
font-weight: bold;
227-
margin-bottom: 20px;
228-
color: #fff;
229-
}
230-
231-
/* Filter rows */
232-
.dateRow {
233-
display: grid;
234-
grid-template-columns: auto 1fr auto 1fr;
235-
align-items: center;
236-
gap: 10px;
237-
width: 100%;
238-
margin-bottom: 15px;
239-
}
240-
241-
.projectRow {
242-
width: 100%;
243-
}
244-
245-
/* Labels */
246-
.dateLabelLight {
247-
font-size: 14px;
248-
font-weight: 500;
249-
color: #333;
250-
}
183+
/* ---------- LIGHT MODE – FIX FADED DAYS ---------- */
251184

252-
.dateLabelDark {
253-
font-size: 14px;
254-
font-weight: 500;
255-
color: #cfd7e3;
185+
:global(.react-datepicker.lightCalendar .react-datepicker__day) {
186+
color: #0f172a;
256187
}
257188

258-
/* Date picker */
259-
.dateField {
260-
width: 100%;
189+
:global(.react-datepicker.lightCalendar .react-datepicker__day--outside-month) {
190+
color: #94a3b8; /* visible light gray */
261191
}
262192

263-
.dateLight,
264-
.dateDark {
265-
width: 100%;
266-
padding: 8px 10px;
267-
border-radius: 6px;
268-
border: 1px solid #ccc;
269-
font-size: 14px;
193+
:global(.react-datepicker.lightCalendar .react-datepicker__day--disabled) {
194+
color: #cbd5e1;
195+
opacity: 1; /* IMPORTANT */
270196
}
271197

272-
.dateDark {
273-
background: #22272e;
274-
color: #cfd7e3;
275-
border-color: #3d444d;
276-
}
277198

278-
/* React select */
279-
.selectReact {
280-
width: 100%;
281-
}
199+
/* ---------- LIGHT MODE – FIX HEADER ---------- */
282200

283-
:global(.react-datepicker__close-icon::after) {
284-
background: none;
285-
color: #b9b9b9;
286-
font-size: 18px;
201+
:global(.react-datepicker.lightCalendar .react-datepicker__header) {
202+
background: #f8fafc;
203+
border-bottom: 1px solid #e2e8f0;
287204
}
288205

289-
/* DARK MODE CONTROL */
290-
.controlDark {
291-
background: #22272e !important;
292-
border-color: #3d444d !important;
293-
color: #cfd7e3 !important;
294-
}
295-
296-
/* VALUE TEXT */
297-
.valueDark {
298-
color: #cfd7e3 !important;
299-
}
300-
301-
/* MENU */
302-
.menuDark {
303-
background: #22272e !important;
304-
}
305-
306-
/* OPTIONS — keep only base default color */
307-
.optionDark {
308-
color: #cfd7e3 !important;
309-
}
310-
311-
/* MULTI VALUE */
312-
.multiValueDark {
313-
background: #3a3f45 !important;
314-
color: #cfd7e3 !important;
315-
}
316-
317-
.multiValueLabelDark {
318-
color: #cfd7e3 !important;
319-
}
320-
321-
.multiValueRemoveDark {
322-
color: #cfd7e3 !important;
323-
}
324-
325-
/* ===== LIGHT MODE ===== */
326-
327-
.controlLight {
328-
background: white !important;
329-
border-color: #ccc !important;
330-
color: black !important;
331-
}
332-
333-
.menuLight {
334-
background: white !important;
335-
}
336-
337-
.optionLight {
338-
color: black !important;
339-
}
340-
341-
.multiValueLight {
342-
background: #dceeff !important;
343-
color: black !important;
206+
:global(.react-datepicker.lightCalendar .react-datepicker__current-month) {
207+
color: #0f172a;
208+
font-weight: 600;
344209
}
345210

346-
.multiValueLabelLight {
347-
color: black !important;
211+
:global(.react-datepicker.lightCalendar .react-datepicker__day-name) {
212+
color: #475569;
348213
}
349214

350-
.multiValueRemoveLight {
351-
color: black !important;
215+
:global(.react-datepicker.lightCalendar
216+
.react-datepicker__navigation-icon::before) {
217+
border-color: #0f172a;
352218
}
353219

220+
/* ---------- LIGHT MODE – FIX BLACK GRID BACKGROUND ---------- */
354221

355-
/* No data text */
356-
.noData {
357-
text-align: center;
358-
color: #888;
359-
font-size: 16px;
360-
padding: 40px 0;
222+
:global(.react-datepicker.lightCalendar) {
223+
background-color: #ffffff;
361224
}
362225

363-
/* Loading/Error */
364-
.loading,
365-
.error {
366-
text-align: center;
367-
padding: 20px 0;
368-
font-size: 16px;
226+
:global(.react-datepicker.lightCalendar .react-datepicker__month-container) {
227+
background-color: #ffffff;
369228
}
370229

371-
.rowLabel {
372-
margin: 8px 0 8px;
373-
font-weight: 600;
374-
font-size: 16px;
230+
:global(.react-datepicker.lightCalendar .react-datepicker__month) {
231+
background-color: #ffffff;
375232
}
376233

377-
378-
/* Responsive */
379-
@media (max-width: 650px) {
380-
.dateRow {
381-
grid-template-columns: 1fr;
382-
gap: 10px;
383-
}
384-
385-
.dateRow span.dateLabel {
386-
display: none; /* hide labels for small screens */
387-
}
234+
:global(.react-datepicker.lightCalendar .react-datepicker__week) {
235+
background-color: #ffffff;
388236
}

0 commit comments

Comments
 (0)