0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-26 23:54:23 +01:00

prevent text selection for floating labels example (#27719)

* 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
This commit is contained in:
m5o 2018-11-24 13:25:18 +01:00 committed by Martijn Cuppens
parent 28a972ac9f
commit c9157be574

View File

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