Skip to content

Commit

Permalink
fix(title): large title now inherits global color styling during nav …
Browse files Browse the repository at this point in the history
…transition (#20862)
  • Loading branch information
liamdebeasi committed Mar 25, 2020
1 parent d3d7de1 commit 321140f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/components/header/header.tsx
Expand Up @@ -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) {
Expand Down
4 changes: 4 additions & 0 deletions core/src/components/title/title.ios.scss
Expand Up @@ -55,3 +55,7 @@

text-align: start;
}

:host(.title-large.ion-cloned-element) {
--color: #{$text-color};
}

0 comments on commit 321140f

Please sign in to comment.