You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discovered that simply adding the switch attribute to an existing customized switch input will mean that using the input on an iPhone with iOS 17.4 or later will give satisfying haptic feedback (just like the OS level switches do). The styling remains identical so I see this a minor progressive enhancement and personally I'll add this attribute to the Modus Bootstrap switches example code moving forward.
Prerequisites
Proposal
I recently did some deep-dive research into using Safari's native switch input which has been available some 17.4.
I discovered that simply adding the switch attribute to an existing customized switch input will mean that using the input on an iPhone with iOS 17.4 or later will give satisfying haptic feedback (just like the OS level switches do). The styling remains identical so I see this a minor progressive enhancement and personally I'll add this attribute to the Modus Bootstrap switches example code moving forward.
You can test this on an iPhone at: https://codepen.io/coliff/pen/LEYYqdV
Motivation and context
No response
What is the issue regarding ?
@trimble-oss/modus-web-components
Priority
Low
What product/project are you using Modus Components for ?
Modus
What is your team/division name ?
Modus
Are you willing to contribute ?
Yes
Are you using Modus Web Components in production ?
Modus
The text was updated successfully, but these errors were encountered: