Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input: animation on focus doesn't work now #2298

Closed
ghost opened this issue Nov 7, 2017 · 1 comment
Closed

Input: animation on focus doesn't work now #2298

ghost opened this issue Nov 7, 2017 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Nov 7, 2017

✔ BUG

Steps

<Form.Input
  type="password"
  name="password"
  icon="lock"
  iconPosition="left"
  label="Password"
/>

Expected Result

<div class="field">
  <label>Password</label>
  <div class="ui left icon input">
    <input type="password" name="password" placeholder="Mot-de-passe" autocomplete="off">
    <i class="lock icon"></i>
  </div>
</div>

Actual Result

<div class="field">
  <label>Password</label>
  <div class="ui left icon input">
    <i class="lock icon"></i>
    <input type="password" name="password" placeholder="Mot-de-passe" autocomplete="off">
  </div>
</div>

I loose Semantic-UI nice animation on focus because this Semantic css:

.ui.icon.input > input:focus ~ i.icon {
    opacity: 1;
}

which doesn't work if icon is above and not below.

Version

0.76.0

Testcase

http://jsfiddle.net/o48pt0yf/

@layershifter layershifter changed the title Semantic-UI nice animation on focus doesn't work now. Icon: animation on focus doesn't work now Nov 8, 2017
@layershifter layershifter changed the title Icon: animation on focus doesn't work now Input: animation on focus doesn't work now Nov 8, 2017
@layershifter
Copy link
Member

@johnunclesam Thanks for report, I've made PR, #2302.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant