(header: HTMLElement | null, isTransitioning: boolean)
| 317 | * @param isTransitioning Whether the transition is occurring. |
| 318 | */ |
| 319 | const setHeaderTransitionClass = (header: HTMLElement | null, isTransitioning: boolean) => { |
| 320 | if (!header) { |
| 321 | return; |
| 322 | } |
| 323 | |
| 324 | const transitionClass = 'header-transitioning'; |
| 325 | if (isTransitioning) { |
| 326 | header.classList.add(transitionClass); |
| 327 | } else { |
| 328 | header.classList.remove(transitionClass); |
| 329 | } |
| 330 | }; |
| 331 | |
| 332 | export const getIonPageElement = (element: HTMLElement) => { |
| 333 | if (element.classList.contains('ion-page')) { |
no test coverage detected