mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +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:
parent
28a972ac9f
commit
c9157be574
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user