diff options
author | m5o <m5o@gmx.com> | 2018-11-24 15:25:18 +0300 |
---|---|---|
committer | Martijn Cuppens <martijn.cuppens@gmail.com> | 2018-11-24 15:25:18 +0300 |
commit | c9157be5743ce20704829b3073f664cabe003936 (patch) | |
tree | 14643a8de4c61061590e84278551feeb0384af76 | |
parent | 28a972ac9faf192f57ddc0f69602756d16108fe1 (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.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 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; |