Skip to content

Commit fa5d595

Browse files
committed
Align Activity List filters in dark mode
1 parent 47c08d1 commit fa5d595

2 files changed

Lines changed: 42 additions & 8 deletions

File tree

src/components/CommunityPortal/Activities/ActivityList.jsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,16 @@ function ActivityList() {
196196
)}
197197
</div>
198198
</label>
199-
<button
200-
type="button"
201-
onClick={handleClearFilters}
202-
disabled={!filter.type && !filter.date && !filter.location}
203-
className={styles.clearButton}
204-
>
205-
Clear All
206-
</button>
199+
<div className={styles.clearButtonWrapper}>
200+
<button
201+
type="button"
202+
onClick={handleClearFilters}
203+
disabled={!filter.type && !filter.date && !filter.location}
204+
className={styles.clearButton}
205+
>
206+
Clear All
207+
</button>
208+
</div>
207209
</div>
208210
<div className={`${styles.activityList} ${darkMode ? styles.darkModeList : ''}`}>
209211
{loading ? (

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
.filters {
3737
display: flex;
3838
justify-content: center;
39+
align-items: flex-end;
3940
gap: 30px;
4041
margin: 30px 0;
4142
padding: 10px;
@@ -75,6 +76,13 @@
7576
background-color: #1e2a3a !important;
7677
color: #ffffff !important;
7778
border: 1px solid #3a4a5c !important;
79+
color-scheme: dark;
80+
}
81+
82+
/* Dark mode date input - style the calendar icon */
83+
.darkModeInput[type="date"]::-webkit-calendar-picker-indicator {
84+
filter: invert(1);
85+
cursor: pointer;
7886
}
7987

8088
.filters input:focus {
@@ -94,6 +102,30 @@
94102
color: #a0a0a0;
95103
}
96104

105+
/* Clear All button */
106+
.clearButton {
107+
padding: 10px 20px;
108+
background-color: #ef4444;
109+
color: #ffffff;
110+
border: none;
111+
border-radius: 6px;
112+
font-size: 1rem;
113+
cursor: pointer;
114+
transition: all 0.3s ease;
115+
}
116+
117+
.clearButton:hover:not(:disabled) {
118+
background-color: #dc2626;
119+
transform: translateY(-2px);
120+
box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
121+
}
122+
123+
.clearButton:disabled {
124+
background-color: #9ca3af;
125+
cursor: not-allowed;
126+
opacity: 0.6;
127+
}
128+
97129
.activityList {
98130
max-width: 900px;
99131
margin: 0 auto;

0 commit comments

Comments
 (0)