From 7b1cfcf863e1f905ff8540519cbf13385d1582d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Fri, 16 Dec 2022 12:30:23 +0100 Subject: [PATCH] feat(range): provide an example to display the value --- site/content/docs/5.2/forms/range.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/site/content/docs/5.2/forms/range.md b/site/content/docs/5.2/forms/range.md index 81eeae4b4b..0fe7798c32 100644 --- a/site/content/docs/5.2/forms/range.md +++ b/site/content/docs/5.2/forms/range.md @@ -50,6 +50,28 @@ By default, range inputs "snap" to integer values. To change this, you can speci {{< /example >}} +## Usability + +For better usability, it is recommended most of the time to display the current selected value. + +This requires extra JavaScript code. + +{{< example >}} +
+ + +
+ + + +{{< /example >}} + ## Sass ### Variables