mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Andrew Seguin
parent
6aaddbf526
commit
3e993b651c
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user