Skip to content

Commit

Permalink
Truncate text to prevent multiline floating label
Browse files Browse the repository at this point in the history
  • Loading branch information
HDPham authored and mdo committed May 21, 2022
1 parent 8d87997 commit 50dc80b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scss/forms/_floating-labels.scss
Expand Up @@ -12,8 +12,12 @@
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%; // allow textareas
padding: $form-floating-padding-y $form-floating-padding-x;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: none;
border: $input-border-width solid transparent; // Required for aligning label's text with the input as it affects inner box model
transform-origin: 0 0;
Expand Down

0 comments on commit 50dc80b

Please sign in to comment.