Keen-UI icon indicating copy to clipboard operation
Keen-UI copied to clipboard

Labels jumping during the floating animation on <ui-textbox>

Open Akiyamka opened this issue 7 years ago • 4 comments

When one of the elements plays the floating animation all other elements "jumping". Looks like this: jamp Note that the label becomes a little blurry. This behavior is observed not everywhere, sometimes it displays perfectly. But I couldn't find any regularity.

Akiyamka avatar Feb 06 '17 13:02 Akiyamka

This shows most of the time if you put a TextBox inside an animated UiModal (scale animation)

nivv avatar Feb 07 '17 08:02 nivv

if you put a TextBox inside an animated UiModal

Possible, but I didn't put the TextBox inside an animated UiModal. DOM looks like this:

<div class="profile">
      <h2> {{userInfo.name}} </h2>
      <section class="user-info">

                <ui-textbox
                floating-label
                label="User Name"
                name="name"
                placeholder="Enter user name"
                v-model="userInfo.name"
                required=true
                ></ui-textbox>

                <ui-textbox
                 floating-label
                 label="Password"
                 name="password"
                 placeholder="Password"
                 v-model="userInfo.password"
                 type = "password"
                 required=true
                 ></ui-textbox>
  
                   <!-- many another ui-textbox -->
       </section>
</div>

Akiyamka avatar Feb 09 '17 10:02 Akiyamka

For textboxes I use the following workaround:

.ui-textbox__label {
    ...
    border-bottom: 1px solid transparent;
}
.is-active .ui-textbox__label {
    ...
    border-color: $color;
}

.ui-textbox.is-active:not(.is-disabled) .ui-textbox__input, .ui-textbox.is-active:not(.is-disabled) .ui-textbox__textarea {
    ...
    border-bottom-width: 1px;
}

kilobyte2007 avatar Apr 20 '17 14:04 kilobyte2007

@JosephusPaye If you consider it a good solution I can make a fix and create a PR (for textboxes and select).

kilobyte2007 avatar Apr 20 '17 14:04 kilobyte2007