From: Christian Oliff Date: Tue, 20 Jan 2026 06:23:14 +0000 (+0900) Subject: docs: add role="switch" to switches X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d4052bf1774bd9d59e047c274ae1f1e277fa178;p=thirdparty%2Fbootstrap.git docs: add role="switch" to switches `role="switch"` is automatically added to checkboxes with the switch attribute in Safari, but we still need to add `role="switch"` for Chromium and Firefox etc, --- diff --git a/site/src/components/shortcodes/StepperPlayground.astro b/site/src/components/shortcodes/StepperPlayground.astro index 57ebef4c7b..e9b952af31 100644 --- a/site/src/components/shortcodes/StepperPlayground.astro +++ b/site/src/components/shortcodes/StepperPlayground.astro @@ -134,7 +134,7 @@ const stepCounts = [3, 4, 5, 6]
- +
diff --git a/site/src/content/docs/forms/switch.mdx b/site/src/content/docs/forms/switch.mdx index 4112b91b6d..1f8a9a42f8 100644 --- a/site/src/content/docs/forms/switch.mdx +++ b/site/src/content/docs/forms/switch.mdx @@ -15,7 +15,7 @@ Switches work by layering an invisible checkbox over the custom switch indicator Switches also include the `switch` attribute for browsers that support it. This provides haptic feedback when toggling the switch. - + `} /> ## Label @@ -26,14 +26,14 @@ Consider margin utilities for additional spacing, and flex utilities for alignme
- +
- +
`} /> @@ -44,7 +44,7 @@ Modify the appearance of checked checkboxes by adding the `.checked-{color}` cla `
- +
`)} /> @@ -55,7 +55,7 @@ Add the `disabled` attribute and the associated `