Skip to content

Commit 5c32966

Browse files
committed
chore(toggle): revert changes
1 parent cc1d892 commit 5c32966

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

core/src/components/toggle/test/toggle.spec.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { setMode } from '@stencil/core';
21
import { newSpecPage } from '@stencil/core/testing';
32

43
import { 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

7458
describe('ion-toggle: disabled', () => {

core/src/utils/config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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`.

0 commit comments

Comments
 (0)