File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change 1- import { setMode } from '@stencil/core' ;
21import { newSpecPage } from '@stencil/core/testing' ;
32
43import { config } from '../../../global/config' ;
@@ -54,21 +53,6 @@ describe('toggle', () => {
5453 expect ( toggle ) . toHaveShadowPart ( 'handle' ) ;
5554 } ) ;
5655 } ) ;
57-
58- describe ( 'iOS haptic feedback' , ( ) => {
59- it ( 'should render additional elements when enabled in config' , async ( ) => {
60- setMode ( ( ) => 'ios' ) ;
61- const t = await newToggle ( ) ;
62- expect ( t [ 'hapticEl' ] ) . toBeNull ( ) ;
63-
64- config . reset ( {
65- toggleIOSHapticFeedback : true ,
66- } ) ;
67-
68- const t2 = await newToggle ( ) ;
69- expect ( t2 [ 'hapticEl' ] ) . not . toBeNull ( ) ;
70- } ) ;
71- } ) ;
7256} ) ;
7357
7458describe ( 'ion-toggle: disabled' , ( ) => {
Original file line number Diff line number Diff line change @@ -72,13 +72,6 @@ export interface IonicConfig {
7272 */
7373 toggleOnOffLabels ?: boolean ;
7474
75- /**
76- * Whenever changing the toggle state should produce a haptic feedback (slight vibration)
77- * on iOS in browser and PWA environments. Requires iOS 18 or later.
78- * Defaults to `false`.
79- */
80- toggleIOSHapticFeedback ?: boolean ;
81-
8275 /**
8376 * Overrides the default spinner for all `ion-loading` overlays, ie. the ones
8477 * created with `ion-loading-controller`.
You can’t perform that action at this time.
0 commit comments