fix(title): large title now inherits global color styling during nav transition (#20862)

This commit is contained in:
Liam DeBeasi
2020-03-25 12:14:26 -04:00
committed by GitHub
parent e2cba41e32
commit 794c3d4e96
2 changed files with 6 additions and 1 deletions

View File

@ -126,7 +126,8 @@ export class Header implements ComponentInterface {
this.scrollEl!.addEventListener('scroll', this.contentScrollCallback);
writeTask(() => {
cloneElement('ion-title');
const title = cloneElement('ion-title') as HTMLIonTitleElement;
title.size = 'large';
cloneElement('ion-back-button');
if (this.collapsibleMainHeader !== undefined) {

View File

@ -55,3 +55,7 @@
text-align: start;
}
:host(.title-large.ion-cloned-element) {
--color: #{$text-color};
}