Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch: Add switch attribute as a minor progressive enhancement #3168

Open
2 tasks done
coliff opened this issue Feb 12, 2025 · 0 comments
Open
2 tasks done

Switch: Add switch attribute as a minor progressive enhancement #3168

coliff opened this issue Feb 12, 2025 · 0 comments
Labels
1 1 story point modus-switch

Comments

@coliff
Copy link
Member

coliff commented Feb 12, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 1 story point modus-switch
Projects
Status: In Review
Development

No branches or pull requests

1 participant