mirror of https://github.com/twbs/bootstrap.git
fix
This commit is contained in:
parent
4d5b2a3de6
commit
ec9cfffa04
|
@ -37,7 +37,7 @@ execFile('java', ['-version'], (error, stdout, stderr) => {
|
|||
// Astro's expecting trailing slashes on HTML tags such as <br />
|
||||
'Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.',
|
||||
// Allow `switch` attribute.
|
||||
'Attribute "switch" not allowed on element "input" at this point.'
|
||||
'Attribute “switch” not allowed on element “input” at this point.'
|
||||
].join('|')
|
||||
|
||||
const args = [
|
||||
|
|
|
@ -120,7 +120,7 @@ A switch has the markup of a custom checkbox but uses the `.form-switch` class t
|
|||
Progressively enhance your switches for mobile Safari (iOS 17.4+) by adding a `switch` attribute to your input to enable haptic feedback when toggling switches, just like native iOS switches. There are no style changes attached to using this attribute in Bootstrap as all our switches use custom styles.
|
||||
|
||||
<Example code={`<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" value="" id="checkNativeSwitch" switch="">
|
||||
<input class="form-check-input" type="checkbox" value="" id="checkNativeSwitch" switch>
|
||||
<label class="form-check-label" for="checkNativeSwitch">
|
||||
Native switch haptics
|
||||
</label>
|
||||
|
|
Loading…
Reference in New Issue