materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Helper text improvement for user input errors

Open reckerswartz opened this issue 8 years ago • 1 comments

Current Behavior

class helper-text is followed by a margin of input

  • input[****]:not(.browser-default) { margin: 0 0 8px 0;}

Expected Behavior

Image of errors_user_input_errors material design specification

Possible Solution

reducing default 8px bottom margin of input tag when helper-text class is used to 4px as given in guidlines.

Environment

Version used: 1.0.0-alpha.3 Browser Name and version: Google Chrome Version 63.0.3239.132 (Official Build) (64-bit) Operating System: Windows 10 pro (64-bit)

reckerswartz avatar Jan 24 '18 07:01 reckerswartz

I'm not sure whether or not this should be a separate issue, but it also looks funny when a prefix icon is used: https://jsbin.com/bugavi/edit?html,output helper-text-alignment

In my project I am working around this with:

i.prefix ~ span.helper-text {
    margin-left: 3rem;
}

jacobq avatar Jan 30 '18 18:01 jacobq