Truncate text to prevent multiline floating label

This commit is contained in:
HDPham 2022-05-10 23:49:08 -05:00 committed by Mark Otto
parent 8d87997303
commit 7ed1a5f821
1 changed files with 4 additions and 0 deletions

View File

@ -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;