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.

autocomplete: add ability to set ID on md-virtual-repeat-container for custom CSS #8393

@annnguyen

Description

@annnguyen

Found a closed ticket that wasn't actually resolved: #4772

We need the ability to style our global search input field using md-autocomplete that is persistent throughout the site to be styled uniquely from any other autocomplete field we're using in various forms on various pages. The width of the element <md-virtual-repeat-container> is what needs to be overriden but there's no option available to do so.

Actual behavior:

  • What is the issue?
  • There's no ability to set a unique ID to <md-virtual-repeat-container> of an <md-autocomplete> to do styling changes to the width of the dropdown list.
  • What is the expected behavior?
  • Would like for there to be directive attribute md-menu-container-id to set ID of <md-virtual-repeat-container> element.

CodePen or Steps to reproduce the issue: *

  • CodePen Demo: http://codepen.io/annnguyen/pen/NNomLo
  • Details: Set md-virtual-repeat-container width to 80%, which is applied to all. There is no ability to set unique selectors to multiple md-autocomplete elements.

Angular Versions: *

  • Angular Version: 1.5.0
  • Angular Material Version: 1.0.8

Additional Information:

  • Browser Type: Any
  • Browser Version: Any
  • OS: Any

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions