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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anish-anantharaman
Copy link

@anish-anantharaman anish-anantharaman commented Feb 17, 2025

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

Related issues

Closes #41223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: Add a note about using the switch attribute on Switches
2 participants