From 06bed9b45af290b05fed9ec003a89af1d3baf6a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Sun, 30 Oct 2022 02:30:59 +0200 Subject: Fix disabled floating labels and add some examples of it in the docs (#37299) * Fix disabled floating labels and add some examples of it in the docs * Add disabled custom height textarea --- site/content/docs/5.2/forms/floating-labels.md | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'site/content/docs') diff --git a/site/content/docs/5.2/forms/floating-labels.md b/site/content/docs/5.2/forms/floating-labels.md index 9ec4fcd2f..6b33fb67b 100644 --- a/site/content/docs/5.2/forms/floating-labels.md +++ b/site/content/docs/5.2/forms/floating-labels.md @@ -75,6 +75,34 @@ Other than `.form-control`, floating labels are only available on `.form-select` {{< /example >}} +## Disabled + +Add the `disabled` boolean attribute on an input, a textarea or a select to give it a grayed out appearance, remove pointer events, and prevent focusing. + +{{< example >}} +
+ + +
+
+ + +
+
+ + +
+
+ + +
+{{< /example >}} + ## Readonly plaintext Floating labels also support `.form-control-plaintext`, which can be helpful for toggling from an editable `` to a plaintext value without affecting the page layout. -- cgit v1.2.3