mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(title): large title now inherits global color styling during nav transition (#20862)
This commit is contained in:
@ -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) {
|
||||
|
@ -55,3 +55,7 @@
|
||||
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
:host(.title-large.ion-cloned-element) {
|
||||
--color: #{$text-color};
|
||||
}
|
||||
|
Reference in New Issue
Block a user