feat(base-components): add ability to remove ios and md theme (#26669)

This commit is contained in:
Liam DeBeasi
2023-01-24 16:18:35 -05:00
committed by GitHub
parent 4d24b328e2
commit 18f109c7da
114 changed files with 1585 additions and 383 deletions

View File

@ -2,7 +2,7 @@ import type { EventEmitter } from '@stencil/core';
import { Build, Component, Element, Event, Method, Prop, Watch, h } from '@stencil/core';
import { config } from '../../global/config';
import { getIonMode } from '../../global/ionic-global';
import { getIonStylesheet, getIonBehavior } from '../../global/ionic-global';
import type {
Animation,
AnimationBuilder,
@ -111,8 +111,8 @@ export class Nav implements NavOutlet {
this.useRouter = document.querySelector('ion-router') !== null && this.el.closest('[no-router]') === null;
if (this.swipeGesture === undefined) {
const mode = getIonMode(this);
this.swipeGesture = config.getBoolean('swipeBackEnabled', mode === 'ios');
const platform = getIonBehavior(this);
this.swipeGesture = config.getBoolean('swipeBackEnabled', platform === 'ios');
}
this.ionNavWillLoad.emit();
@ -859,7 +859,7 @@ export class Nav implements NavOutlet {
const opts = ti.opts!;
const progressCallback = opts.progressAnimation ? (ani: Animation | undefined) => (this.sbAni = ani) : undefined;
const mode = getIonMode(this);
const mode = getIonStylesheet(this);
const enteringEl = enteringView.element!;
const leavingEl = leavingView && leavingView.element!;
const animationOpts: TransitionOptions = {