mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
breaking(config): remove experimentalTransitionShadow config option (#22797)
This commit is contained in:
14
BREAKING.md
14
BREAKING.md
@ -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)
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user