breaking(config): remove experimentalTransitionShadow config option (#22797)

This commit is contained in:
Liam DeBeasi
2021-01-20 14:02:56 -05:00
committed by GitHub
parent 9a02ec8402
commit 6f2cbe6e59
3 changed files with 15 additions and 7 deletions

View File

@ -4,11 +4,25 @@ This is a comprehensive list of the breaking changes introduced in the major ver
## Versions
- [Version 6.x](#version-6x)
- [Version 5.x](#version-5x)
- [Version 4.x](#version-4x)
- [Legacy](#legacy)
## Version 6.x
- [Config](#config)
* [Transition Shadow](#transition-shadow)
### Config
#### Transition Shadow
The `experimentalTransitionShadow` config option has been removed. The transition shadow is now enabled when running in `ios` mode.
## Version 5.x
- [CSS](#css)

View File

@ -1,6 +1,5 @@
import { Component, ComponentInterface, Element, Event, EventEmitter, Host, Listen, Method, Prop, forceUpdate, h, readTask } from '@stencil/core';
import { config } from '../../global/config';
import { getIonMode } from '../../global/ionic-global';
import { Color, ScrollBaseDetail, ScrollDetail } from '../../interface';
import { isPlatform } from '../../utils/platform';
@ -307,7 +306,7 @@ export class Content implements ComponentInterface {
const { scrollX, scrollY } = this;
const mode = getIonMode(this);
const forceOverscroll = this.shouldForceOverscroll();
const transitionShadow = (mode === 'ios' && config.getBoolean('experimentalTransitionShadow', true));
const transitionShadow = mode === 'ios';
this.resize();

View File

@ -170,11 +170,6 @@ export interface IonicConfig {
*/
pickerLeave?: AnimationBuilder;
/**
* EXPERIMENTAL: Adds a page shadow to transitioning pages on iOS. Disabled by default.
*/
experimentalTransitionShadow?: boolean;
/**
* If `true`, Ionic will enable a basic DOM sanitizer on component properties that accept custom HTML.
*/