From 320f7139052be98339726cac20895f50172000f9 Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Tue, 26 Aug 2025 01:51:35 +0900 Subject: [PATCH] docs: Minor range example code optimization (#41665) I think the 'custom' prefix for the ids in examples were mainly from Bootstrap v4 custom controls. Removing it makes it a bit shorter/neater. --- site/src/content/docs/forms/range.mdx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/site/src/content/docs/forms/range.mdx b/site/src/content/docs/forms/range.mdx index 3f1b1349b7..fecf7ba798 100644 --- a/site/src/content/docs/forms/range.mdx +++ b/site/src/content/docs/forms/range.mdx @@ -8,8 +8,8 @@ toc: true Create custom `` controls with `.form-range`. The track (the background) and thumb (the value) are both styled to appear the same across browsers. As only Firefox supports “filling” their track from the left or right of the thumb as a means to visually indicate progress, we do not currently support it. -Example range -`} /> +Example range +`} /> ## Disabled @@ -22,27 +22,27 @@ Add the `disabled` boolean attribute on an input to give it a grayed out appeara Range inputs have implicit values for `min` and `max`—`0` and `100`, respectively. You may specify new values for those using the `min` and `max` attributes. -Example range -`} /> +Example range +`} /> ## Steps By default, range inputs “snap” to integer values. To change this, you can specify a `step` value. In the example below, we double the number of steps by using `step="0.5"`. -Example range -`} /> +Example range +`} /> ## Output value The value of the range input can be shown using the `output` element and a bit of JavaScript. -Example range - - +Example range + +