diff options
| author | m5o <[email protected]> | 2018-11-24 13:25:18 +0100 |
|---|---|---|
| committer | Martijn Cuppens <[email protected]> | 2018-11-24 13:25:18 +0100 |
| commit | c9157be5743ce20704829b3073f664cabe003936 (patch) | |
| tree | 14643a8de4c61061590e84278551feeb0384af76 | |
| parent | 28a972ac9faf192f57ddc0f69602756d16108fe1 (diff) | |
| download | bootstrap-c9157be5743ce20704829b3073f664cabe003936.tar.xz bootstrap-c9157be5743ce20704829b3073f664cabe003936.zip | |
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
| -rw-r--r-- | site/docs/4.1/examples/floating-labels/floating-labels.css | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/site/docs/4.1/examples/floating-labels/floating-labels.css b/site/docs/4.1/examples/floating-labels/floating-labels.css index c322d9b56..d8ad2f3c1 100644 --- a/site/docs/4.1/examples/floating-labels/floating-labels.css +++ b/site/docs/4.1/examples/floating-labels/floating-labels.css @@ -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; |
