mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
fix(title): improve reliability of large title ios nav transition (#20861)
This commit is contained in:
committed by
Liam DeBeasi
parent
2707289b36
commit
3bd6b5def2
@ -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)');
|
||||||
|
|||||||
Reference in New Issue
Block a user