Merge pull request #2682 from Omar-Nabil/fix-mat-label-color
WEB-326 fix: mat-label text color in dashboard widgets for better visibility …
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user