Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

mdSelect: Need spacing for ngMessages #6903

Closed
vbanuelos opened this issue Jan 28, 2016 · 2 comments
Closed

mdSelect: Need spacing for ngMessages #6903

vbanuelos opened this issue Jan 28, 2016 · 2 comments

Comments

@vbanuelos
Copy link

Currently the error message pushes mdSelect up a few pixels.

Quick fix I found, was to add the error spacer (a la mdInput) to the select directive postLink:

containerCtrl.input = element;

// Add an error spacer div after our input to provide space for the char counter and any ng-messages
var errorsSpacer = angular.element('<div class="md-errors-spacer">');
element.after(errorsSpacer);

if (!containerCtrl.label) {
    $mdAria.expect(element, 'aria-label', element.attr('placeholder'));
}
@ThomasBurleson
Copy link
Contributor

Closing without associated CodePen that demostrates the issue.

@nikclayton
Copy link

#8209 is relevant to this issue (and includes CodePen examples).

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

No branches or pull requests

3 participants