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

mdSelect: Need spacing for ngMessages #6903

Closed

Description

@vbanuelos

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'));
}

Activity

  1. added a commit that references this issue on Jan 28, 2016
    92300f5
  2. ThomasBurleson commented on Apr 19, 2016

    @ThomasBurleson
    Contributor

    Closing without associated CodePen that demostrates the issue.

  3. nikclayton commented on May 18, 2016

    @nikclayton

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions