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:
parent
28a972ac9f
commit
c9157be574
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user