mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
refactor(back-button): convert to shadow component (#19411)
references #18899
This commit is contained in:

committed by
Liam DeBeasi

parent
b793214fe1
commit
0d40d3f3b7
@ -99,8 +99,8 @@ const animateBackButton = (rootAnimation: Animation, rtl: boolean, backDirection
|
||||
|
||||
const clonedBackButtonEl = getClonedElement('ion-back-button');
|
||||
|
||||
const backButtonTextEl = clonedBackButtonEl.querySelector('.button-text');
|
||||
const backButtonIconEl = clonedBackButtonEl.querySelector('ion-icon');
|
||||
const backButtonTextEl = shadow(clonedBackButtonEl).querySelector('.button-text');
|
||||
const backButtonIconEl = shadow(clonedBackButtonEl).querySelector('ion-icon');
|
||||
|
||||
clonedBackButtonEl.text = backButtonEl.text;
|
||||
clonedBackButtonEl.mode = backButtonEl.mode;
|
||||
|
Reference in New Issue
Block a user