fix(dialog): invalid text color in dark themes (#4849)

In dark themes the dialog container will have a dark background and the text should therefore have a light text color.

Currently the text color is still dark on a dark background which causes the dialog to look bad in dark themes.
This commit is contained in:
Paul Gschwendtner
2017-06-06 00:43:56 +02:00
committed by Andrew Seguin
parent 6aaddbf526
commit 3e993b651c
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -5,9 +5,11 @@
@mixin mat-dialog-theme($theme) {
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
.mat-dialog-container {
background: mat-color($background, dialog);
color: mat-color($foreground, text);
}
}
+1 -1
View File
@@ -15,7 +15,7 @@ const htmlmin = require('gulp-htmlmin');
* @param packageName Name of the package. Needs to be similar to the directory name in `src/`.
* @param requiredPackages Required packages that will be built before building the current package.
*/
export function createPackageBuildTasks(packageName: string, requiredPackages: string[] = [], ) {
export function createPackageBuildTasks(packageName: string, requiredPackages: string[] = []) {
// To avoid refactoring of the project the package material will map to the source path `lib/`.
const packageRoot = join(SOURCE_ROOT, packageName === 'material' ? 'lib' : packageName);
const packageOut = join(DIST_ROOT, 'packages', packageName);