bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

docs: add iOS-native switch feedback for Safari in Bootstrap docs

Open anish-anantharaman opened this issue 10 months ago • 2 comments

Description

Added a note in the Bootstrap documentation about Safari's native switch support on iOS 17.4 and later. This allows users to get haptic feedback when toggling switches in Bootstrap on iPhones, using the new switch attribute. Additionally, a mention of using native switch appearance for a more iOS/macOS-like experience was added, enhancing accessibility with system settings like "Differentiate Without Color" and "Prefers Higher Contrast."

Motivation & Context

This change provides a minor yet useful enhancement for iOS users, making the Bootstrap switch input behave like native iOS switches with haptic feedback. It adds no functional changes but improves the user experience on iPhones with iOS 17.4+. The change aligns with Bootstrap's goal to ensure cross-browser and cross-device consistency, especially for iOS users.

##Type of changes New feature

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • This contribution introduces changes to the documentation

Live previews

  • https://deploy-preview-41231--twbs-bootstrap.netlify.app/docs/5.3/forms/checks-radios/#switches

Related issues

Closes #41223

anish-anantharaman avatar Feb 17 '25 05:02 anish-anantharaman

Hmm, fails validator because it doesn't like the switch attribute. May need to revisit rules there.

mdo avatar Apr 11 '25 05:04 mdo

Hmm, fails validator because it doesn't like the switch attribute. May need to revisit rules there.

For the switch part, if it works on Safari and you're ready to merge this PR @mdo, you can add an exception into the vnu-jar file, yeah. For the "Lorem ipsum" part, maybe just change the wording instead of adding an exception.

julien-deramond avatar Apr 11 '25 05:04 julien-deramond

Redoing this in #41396.

mdo avatar Apr 22 '25 02:04 mdo