fix: mat-label text color in dashboard widgets for better visibility in light/dark themes

This commit is contained in:
Omar-Nabil
2025-09-26 10:42:51 +03:00
parent a4f8febcb3
commit f600d01574
3 changed files with 58 additions and 4 deletions
@@ -3,8 +3,13 @@
padding: 0;
.header {
#office {
:where(#office) {
margin-bottom: -1.2em;
// Make sure mat-label text is visible in light theme
:where(mat-label) {
color: rgb(0 0 0 / 87%); // Standard Material Design text color for light theme
}
}
}
@@ -12,3 +17,16 @@
height: 20rem;
}
}
// Dark theme specific styles
:host-context(.dark-theme) {
.card {
.header {
:where(#office) {
:where(mat-label) {
color: white; // White text color for dark theme
}
}
}
}
}
@@ -3,8 +3,13 @@
padding: 0;
.header {
#office {
:where(#office) {
margin-bottom: -1.2em;
// Make sure mat-label text is visible in light theme
:where(mat-label) {
color: rgb(0 0 0 / 87%); // Standard Material Design text color for light theme
}
}
}
@@ -12,3 +17,16 @@
height: 20rem;
}
}
// Dark theme specific styles
:host-context(.dark-theme) {
.card {
.header {
:where(#office) {
:where(mat-label) {
color: white; // White text color for dark theme
}
}
}
}
}
@@ -3,12 +3,17 @@
padding: 0;
.header {
#office {
:where(#office) {
margin-bottom: -1.2em;
// Make sure mat-label text is visible in light theme
:where(mat-label) {
color: rgb(0 0 0 / 87%); // Standard Material Design text color for light theme
}
}
}
#timescale {
:where(#timescale) {
margin: 2% 50%;
transform: translateX(-50%);
}
@@ -19,3 +24,16 @@
min-height: 16.5rem;
}
}
// Dark theme specific styles
:host-context(.dark-theme) {
.card {
.header {
:where(#office) {
:where(mat-label) {
color: white; // White text color for dark theme
}
}
}
}
}