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

Responsively hiding prefix icons in forms is buggy #1715

Closed
sushruth opened this issue Jul 10, 2015 · 4 comments
Closed

Responsively hiding prefix icons in forms is buggy #1715

sushruth opened this issue Jul 10, 2015 · 4 comments
Labels

Comments

@sushruth
Copy link

Applying any of the .hide-* classes to .prefix in an input field are resulting in buggy UI. Properties margin-left and width:calc(100% - 3rem) of the inputs and/or labels leave empty space in the place of icon.

screenshot from 2015-07-10 16 35 05

@acburst
Copy link
Collaborator

acburst commented Jul 10, 2015

Can you post a simple codepen to demonstrate the issue? it would help us identify the problems more quickly.

@sushruth
Copy link
Author

@acburst This should help explain the problem: http://codepen.io/sushruth/pen/NqMVXE . Try resizing the window.

@fega fega added the bug label Apr 4, 2017
@DanielRuf
Copy link
Contributor

@media only screen and (max-width: 992px){
  .input-field .prefix.hide-on-med-and-down ~ label,
  .input-field .prefix.hide-on-med-and-down ~ input {
    margin-left:0;
  }
  .input-field .prefix.hide-on-med-and-down ~ input{
    width: 100%;
  }
}

@tomscholz
Copy link
Contributor

tomscholz commented Jul 9, 2017

Closed due inactivity. Feel free to reopen it, if it's still necessary.

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

5 participants