-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(datepicker): Fix navigation alignment with preserveWhitespaces: f…
…alse (#4509) * fix(datepicker): Fix navigation alignment with preserveWhitespaces: false When used with `preserveWhitespaces: false` compilation option in Angular, the datepicker title elements are misaligned, because spaces are missing in the justified text. Since Angular 6, `preserveWhitespaces: false` is the default, so many users will encounter this bug. Let's add zero-width spaces in order to have a correct alignment in all cases. Closes #4443 * fix(main): Reset `preserveWhitespaces` option to default This commit reverts fee535a and 0478637, which should not be needed anymore. `preserveWhitespaces: false` is the default since Angular 6: let's use the default!
- Loading branch information
1 parent
e225d8d
commit 9980218
Showing
3 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,8 +24,5 @@ | |
"exclude": [ | ||
"src/test.ts", | ||
"**/*.spec.ts" | ||
], | ||
"angularCompilerOptions": { | ||
"preserveWhitespaces": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters