Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorm5o <m5o@gmx.com>2018-11-24 15:25:18 +0300
committerMartijn Cuppens <martijn.cuppens@gmail.com>2018-11-24 15:25:18 +0300
commitc9157be5743ce20704829b3073f664cabe003936 (patch)
tree14643a8de4c61061590e84278551feeb0384af76
parent28a972ac9faf192f57ddc0f69602756d16108fe1 (diff)
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.css1
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 c322d9b568..d8ad2f3c15 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;