diff options
| author | Bobby <[email protected]> | 2024-08-16 20:47:33 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-16 20:47:33 -0400 |
| commit | 6b28433d9cfde435be8ec2bd6cf91e6324d08865 (patch) | |
| tree | 8343c27b8b95ff5639233e81cf157f92e5688466 /site/content/docs/5.1/forms/select.md | |
| parent | d53094ec16ba385faae2973ddee648698b32ab24 (diff) | |
| parent | 048f56f51460df75e92a2f7b472e1c56baeb68f7 (diff) | |
| download | bootstrap-main.tar.xz bootstrap-main.zip | |
Diffstat (limited to 'site/content/docs/5.1/forms/select.md')
| -rw-r--r-- | site/content/docs/5.1/forms/select.md | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/site/content/docs/5.1/forms/select.md b/site/content/docs/5.1/forms/select.md deleted file mode 100644 index 7f0c255ef..000000000 --- a/site/content/docs/5.1/forms/select.md +++ /dev/null @@ -1,81 +0,0 @@ ---- -layout: docs -title: Select -description: Customize the native `<select>`s with custom CSS that changes the element's initial appearance. -group: forms -toc: true ---- - -## Default - -Custom `<select>` menus need only a custom class, `.form-select` to trigger the custom styles. Custom styles are limited to the `<select>`'s initial appearance and cannot modify the `<option>`s due to browser limitations. - -{{< example >}} -<select class="form-select" aria-label="Default select example"> - <option selected>Open this select menu</option> - <option value="1">One</option> - <option value="2">Two</option> - <option value="3">Three</option> -</select> -{{< /example >}} - -## Sizing - -You may also choose from small and large custom selects to match our similarly sized text inputs. - -{{< example >}} -<select class="form-select form-select-lg mb-3" aria-label=".form-select-lg example"> - <option selected>Open this select menu</option> - <option value="1">One</option> - <option value="2">Two</option> - <option value="3">Three</option> -</select> - -<select class="form-select form-select-sm" aria-label=".form-select-sm example"> - <option selected>Open this select menu</option> - <option value="1">One</option> - <option value="2">Two</option> - <option value="3">Three</option> -</select> -{{< /example >}} - -The `multiple` attribute is also supported: - -{{< example >}} -<select class="form-select" multiple aria-label="multiple select example"> - <option selected>Open this select menu</option> - <option value="1">One</option> - <option value="2">Two</option> - <option value="3">Three</option> -</select> -{{< /example >}} - -As is the `size` attribute: - -{{< example >}} -<select class="form-select" size="3" aria-label="size 3 select example"> - <option selected>Open this select menu</option> - <option value="1">One</option> - <option value="2">Two</option> - <option value="3">Three</option> -</select> -{{< /example >}} - -## Disabled - -Add the `disabled` boolean attribute on a select to give it a grayed out appearance and remove pointer events. - -{{< example >}} -<select class="form-select" aria-label="Disabled select example" disabled> - <option selected>Open this select menu</option> - <option value="1">One</option> - <option value="2">Two</option> - <option value="3">Three</option> -</select> -{{< /example >}} - -## Sass - -### Variables - -{{< scss-docs name="form-select-variables" file="scss/_variables.scss" >}} |
