]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
prevent text selection for floating labels example (#27719)
authorm5o <m5o@gmx.com>
Sat, 24 Nov 2018 12:25:18 +0000 (13:25 +0100)
committerMartijn Cuppens <martijn.cuppens@gmail.com>
Sat, 24 Nov 2018 12:25:18 +0000 (13:25 +0100)
* prevent text selection for floating labels
  * expand the click target by no selecting the label text
* use `pointer-events: none;` instead of `user-select`
  * thx @MartijnCuppens

site/docs/4.1/examples/floating-labels/floating-labels.css

index c322d9b56850d551af4b4eb87e8c54934279fccd..d8ad2f3c15db103307671ddb5db9baf7ed8a429d 100644 (file)
@@ -40,6 +40,7 @@ body {
   margin-bottom: 0; /* Override default `<label>` margin */
   line-height: 1.5;
   color: #495057;
+  pointer-events: none;
   cursor: text; /* Match the input under the label */
   border: 1px solid transparent;
   border-radius: .25rem;