-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Different ng-message size with ng-show and ng-if #7596
Comments
Might be related to my issue, #7477 |
I've also noticed this issue. Hoping for a quick fix as all our validations are now looking very chunky and large. |
I'm using this nasty hack..to force it to look as similar to other ng-messages as possible
|
@gpopovic yes, but you'll also need the line-height and the animation CSS to make it the same as intended. Hopefully this can be added so it's the same for both ng-if and ng-show. |
We're reworking a few things with the input/message animations and I have a note to fix this exact issue (it's causing some other problems as well). We'll try to get this fixed soon. |
As you can see in this codepen, when using ng-messages with md-autocomplete, the font size is also wrong, no matter if you use ng-show or ng-if. You can also see it in the autocomplete demo. |
* Currently ngMessage directives inside of an input-container, which are loaded / transcluded dynamically, didn't get initialized properly. The animation was not working. As well as the auto-hide didn't work properly. Fixes angular#7477. Fixes angular#7596.
* Currently ngMessage directives inside of an input-container, which are loaded / transcluded dynamically, didn't get initialized properly. The animation was not working. As well as the auto-hide didn't work properly. Fixes angular#7477. Fixes angular#7596.
* Currently ngMessage directives inside of an input-container, which are loaded / transcluded dynamically, didn't get initialized properly. The animation was not working. As well as the auto-hide didn't work properly. Fixes angular#7477. Fixes angular#7596. Fixes angular#6810. Fixes angular#7823
* Currently ngMessage directives inside of an input-container, which are loaded / transcluded dynamically, didn't get initialized properly. The animation was not working. As well as the auto-hide didn't work properly. Fixes angular#7477. Fixes angular#7596. Fixes angular#6810. Fixes angular#7823
As you can see in this codepen, the ng-message font size varies depending on whether the input is defined with a
ng-show
orng-if
attribute.It seems that the ng-message div is only generated with the
md-input-message-animation
class whenng-show
is used.The text was updated successfully, but these errors were encountered: