fix(title): improve reliability of large title ios nav transition (#20861)

This commit is contained in:
Liam DeBeasi
2020-03-24 18:06:17 -04:00
committed by Liam DeBeasi
parent 2707289b36
commit 3bd6b5def2

View File

@ -14,7 +14,7 @@ export const shadow = <T extends Element>(el: T): ShadowRoot | T => {
const getLargeTitle = (refEl: any) => { const getLargeTitle = (refEl: any) => {
const tabs = (refEl.tagName === 'ION-TABS') ? refEl : refEl.querySelector('ion-tabs'); const tabs = (refEl.tagName === 'ION-TABS') ? refEl : refEl.querySelector('ion-tabs');
const query = 'ion-header:not(.header-collapse-condense-inactive) ion-title[size=large]'; const query = 'ion-header:not(.header-collapse-condense-inactive) ion-title.title-large';
if (tabs != null) { if (tabs != null) {
const activeTab = tabs.querySelector('ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)'); const activeTab = tabs.querySelector('ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)');