Skip to content

Commit f91fc7a

Browse files
fix filters chips for dark theme
1 parent 6345c2e commit f91fc7a

2 files changed

Lines changed: 46 additions & 20 deletions

File tree

frontend/src/app/components/dashboard/db-table-view/db-table-view.component.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,30 @@
223223
background-color: #E8ECEE !important;
224224
}
225225

226+
@media (prefers-color-scheme: dark) {
227+
::ng-deep .active-filters .mat-mdc-chip {
228+
--mdc-chip-container-color: #3a4a5c !important;
229+
--mdc-chip-elevated-container-color: #3a4a5c !important;
230+
--mdc-chip-label-text-color: rgba(255, 255, 255, 0.87) !important;
231+
background-color: #3a4a5c !important;
232+
color: rgba(255, 255, 255, 0.87) !important;
233+
}
234+
235+
::ng-deep .active-filters .mat-mdc-chip:hover {
236+
--mdc-chip-container-color: #3a4a5c !important;
237+
--mdc-chip-elevated-container-color: #3a4a5c !important;
238+
background-color: #3a4a5c !important;
239+
}
240+
241+
::ng-deep .active-filters .mdc-evolution-chip__cell {
242+
background-color: #3a4a5c !important;
243+
}
244+
245+
::ng-deep .active-filters .mdc-evolution-chip__cell:hover {
246+
background-color: #3a4a5c !important;
247+
}
248+
}
249+
226250
.db-table-manage-columns-button__count {
227251
margin-left: 2px;
228252
}

frontend/src/app/components/dashboard/db-table-view/saved-filters-panel/saved-filters-panel.component.css

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -366,47 +366,49 @@
366366

367367
@media (prefers-color-scheme: dark) {
368368
::ng-deep .static-filter-chip .mat-mdc-chip {
369-
--mdc-chip-container-color: #E8ECEE !important;
370-
--mdc-chip-elevated-container-color: #E8ECEE !important;
371-
background-color: #E8ECEE !important;
369+
--mdc-chip-container-color: #3a4a5c !important;
370+
--mdc-chip-elevated-container-color: #3a4a5c !important;
371+
--mdc-chip-label-text-color: rgba(255, 255, 255, 0.87) !important;
372+
background-color: #3a4a5c !important;
373+
color: rgba(255, 255, 255, 0.87) !important;
372374
}
373375

374376
::ng-deep .static-filter-chip .mat-mdc-chip:hover {
375-
--mdc-chip-container-color: #E8ECEE !important;
376-
--mdc-chip-elevated-container-color: #E8ECEE !important;
377-
background-color: #E8ECEE !important;
377+
--mdc-chip-container-color: #3a4a5c !important;
378+
--mdc-chip-elevated-container-color: #3a4a5c !important;
379+
background-color: #3a4a5c !important;
378380
}
379381

380382
::ng-deep .static-filter-chip .mat-mdc-chip:active {
381-
--mdc-chip-container-color: #E8ECEE !important;
382-
--mdc-chip-elevated-container-color: #E8ECEE !important;
383-
background-color: #E8ECEE !important;
383+
--mdc-chip-container-color: #3a4a5c !important;
384+
--mdc-chip-elevated-container-color: #3a4a5c !important;
385+
background-color: #3a4a5c !important;
384386
}
385387

386388
::ng-deep .static-filter-chip .mdc-evolution-chip__cell {
387-
background-color: #E8ECEE !important;
389+
background-color: #3a4a5c !important;
388390
}
389391

390392
::ng-deep .static-filter-chip .mdc-evolution-chip__cell:hover {
391-
background-color: #E8ECEE !important;
393+
background-color: #3a4a5c !important;
392394
}
393395

394396
::ng-deep .static-filter-chip .mat-mdc-chip.mdc-evolution-chip--with-primary-icon {
395-
--mdc-chip-container-color: #E8ECEE !important;
396-
--mdc-chip-elevated-container-color: #E8ECEE !important;
397-
background-color: #E8ECEE !important;
397+
--mdc-chip-container-color: #3a4a5c !important;
398+
--mdc-chip-elevated-container-color: #3a4a5c !important;
399+
background-color: #3a4a5c !important;
398400
}
399401

400402
::ng-deep .static-filter-chip .mat-mdc-chip.mdc-evolution-chip--with-primary-icon:hover {
401-
--mdc-chip-container-color: #E8ECEE !important;
402-
--mdc-chip-elevated-container-color: #E8ECEE !important;
403-
background-color: #E8ECEE !important;
403+
--mdc-chip-container-color: #3a4a5c !important;
404+
--mdc-chip-elevated-container-color: #3a4a5c !important;
405+
background-color: #3a4a5c !important;
404406
}
405407

406408
::ng-deep .static-filter-chip .mat-mdc-chip.mdc-evolution-chip--with-primary-icon:active {
407-
--mdc-chip-container-color: #E8ECEE !important;
408-
--mdc-chip-elevated-container-color: #E8ECEE !important;
409-
background-color: #E8ECEE !important;
409+
--mdc-chip-container-color: #3a4a5c !important;
410+
--mdc-chip-elevated-container-color: #3a4a5c !important;
411+
background-color: #3a4a5c !important;
410412
}
411413
}
412414

0 commit comments

Comments
 (0)