From dd4e14499fd48e697a1a98ed3e94bcb872669436 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 21 Apr 2025 20:32:40 -0700 Subject: [PATCH] Add switch attribute to docs for switch checkbox (#41396) * Add switch attribute to docs for switch checkbox * tweak * AI says this is the way * fix --- build/vnu-jar.mjs | 4 +++- site/src/content/docs/forms/checks-radios.mdx | 21 +++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/build/vnu-jar.mjs b/build/vnu-jar.mjs index a5f37baf61..4eedb1bedc 100644 --- a/build/vnu-jar.mjs +++ b/build/vnu-jar.mjs @@ -35,7 +35,9 @@ execFile('java', ['-version'], (error, stdout, stderr) => { 'Attribute “is:raw” is not serializable as XML 1.0.', 'Attribute “is:raw” not allowed on element “code” at this point.', // Astro's expecting trailing slashes on HTML tags such as
- 'Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.' + '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.' ].join('|') const args = [ diff --git a/site/src/content/docs/forms/checks-radios.mdx b/site/src/content/docs/forms/checks-radios.mdx index bc54b7aa9c..ff6789eb60 100644 --- a/site/src/content/docs/forms/checks-radios.mdx +++ b/site/src/content/docs/forms/checks-radios.mdx @@ -9,7 +9,7 @@ toc: true Browser default checkboxes and radios are replaced with the help of `.form-check`, a series of classes for both input types that improves the layout and behavior of their HTML elements, that provide greater customization and cross browser consistency. Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many. -Structurally, our ``s and `