From 319954d369a09c1bca1fc1721f6977e3a7b1d86d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 29 Sep 2020 11:39:37 -0700 Subject: [PATCH] v5: Add disabled examples for .form-control, .form-select, and .form-range (#31686) * Add disabled state example to the .form-control page * Document disabled attribute on select too * Add disabled example for file input Co-authored-by: XhmikosR --- site/content/docs/5.0/forms/form-control.md | 9 +++++++++ site/content/docs/5.0/forms/range.md | 9 +++++++++ site/content/docs/5.0/forms/select.md | 13 +++++++++++++ 3 files changed, 31 insertions(+) diff --git a/site/content/docs/5.0/forms/form-control.md b/site/content/docs/5.0/forms/form-control.md index 3f10138e99..0287a90d23 100644 --- a/site/content/docs/5.0/forms/form-control.md +++ b/site/content/docs/5.0/forms/form-control.md @@ -29,6 +29,15 @@ Set heights using classes like `.form-control-lg` and `.form-control-sm`. {{< /example >}} +## Disabled + +Add the `disabled` boolean attribute on an input to give it a grayed out appearance and remove pointer events. + +{{< example >}} + + +{{< /example >}} + ## Readonly Add the `readonly` boolean attribute on an input to prevent modification of the input's value. Read-only inputs appear lighter (just like disabled inputs), but retain the standard cursor. diff --git a/site/content/docs/5.0/forms/range.md b/site/content/docs/5.0/forms/range.md index d1ca869bf8..7e95e0edff 100644 --- a/site/content/docs/5.0/forms/range.md +++ b/site/content/docs/5.0/forms/range.md @@ -15,6 +15,15 @@ Create custom `` controls with `.form-range`. The track (the {{< /example >}} +## Disabled + +Add the `disabled` boolean attribute on an input to give it a grayed out appearance and remove pointer events. + +{{< example >}} + + +{{< /example >}} + ## Min and max 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. diff --git a/site/content/docs/5.0/forms/select.md b/site/content/docs/5.0/forms/select.md index e8c62e8f3d..e2b0bd6a81 100644 --- a/site/content/docs/5.0/forms/select.md +++ b/site/content/docs/5.0/forms/select.md @@ -60,3 +60,16 @@ As is the `size` attribute: {{< /example >}} + +## Disabled + +Add the `disabled` boolean attribute on a select to give it a grayed out appearance and remove pointer events. + +{{< example >}} + +{{< /example >}}