aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2020-10-30 18:03:07 +0000
committerGitHub <[email protected]>2020-10-30 18:03:07 +0000
commit6fc35e3231225559a6a4689bfa9727dcfb7fafde (patch)
tree2a6e38d8544972e3028ae54e68b91164fc0f6dda
parentec05adee6d812a78c0623fc04212fe3ca843a2b2 (diff)
downloadbootstrap-6fc35e3231225559a6a4689bfa9727dcfb7fafde.tar.xz
bootstrap-6fc35e3231225559a6a4689bfa9727dcfb7fafde.zip
Add `cursor:pointer` to color inputs (#32020)
* Add `cursor:pointer` for color inputs * Add to migration guide
-rw-r--r--scss/forms/_form-control.scss6
-rw-r--r--site/content/docs/5.0/migration.md1
2 files changed, 6 insertions, 1 deletions
diff --git a/scss/forms/_form-control.scss b/scss/forms/_form-control.scss
index 7b52c6cfe..7fe9f7200 100644
--- a/scss/forms/_form-control.scss
+++ b/scss/forms/_form-control.scss
@@ -1,5 +1,5 @@
//
-// Textual form controls
+// General form controls (plus a few specific high-level interventions)
//
.form-control {
@@ -208,6 +208,10 @@ textarea {
.form-control-color {
max-width: 3rem;
padding: $input-padding-y;
+
+ &:not(:disabled):not([readonly]) {
+ cursor: pointer;
+ }
}
.form-control-color::-moz-color-swatch {
diff --git a/site/content/docs/5.0/migration.md b/site/content/docs/5.0/migration.md
index ed4070121..d4370fe53 100644
--- a/site/content/docs/5.0/migration.md
+++ b/site/content/docs/5.0/migration.md
@@ -26,6 +26,7 @@ toc: true
- The longstanding [Missing border radius on input group with validation feedback bug](https://github.com/twbs/bootstrap/issues/25110) is finally fixed by adding an additional `.has-validation` class to input groups with validation.
- Promoted the Floating labels example to fully supported form component. [See the new Floating labels page.]({{< docsref "/forms/floating-labels" >}})
- File inputs now use the `.form-control` class and don't require JavaScript, additional HTML, or additional classes. [See #31955](https://github.com/twbs/bootstrap/pull/31955).
+- Added `cursor:pointer` to `.form-control-color` color inputs.
### Utilities