Skip to content

feat(autocomplete): add md-autocomplete classes to overlay panel - #7176

Merged
andrewseguin merged 1 commit into
angular:masterfrom
crisbeto:4196/autocomplete-class
Sep 29, 2017
Merged

andrewseguin merged 1 commit into
angular:masterfrom
crisbeto:4196/autocomplete-class

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Transfers any classes added to md-autocomplete to the resulting panel, allowing for easier styling similarly to md-menu.

Fixes #4196.

@crisbeto
crisbeto requested a review from kara as a code owner September 19, 2017 17:54
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Sep 19, 2017
@willshowell

Copy link
Copy Markdown
Contributor

Related #6618. And would it be possible to support NgClass syntax?

@crisbeto

Copy link
Copy Markdown
Member Author

I would rather keep it simple and in line with md-menu. It can be added later if people ask for it.

@willshowell

Copy link
Copy Markdown
Contributor

Ok cool! Also does it support removal of classes? It looks like you can only add classes, though I haven't tested.

@crisbeto

Copy link
Copy Markdown
Member Author

It doesn't, but the intention here is just to allow styles to be overridden. My worry with making it more dynamic is that people may end up putting it in a state where it interferes with the panel being toggled correctly.

@kara kara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kara kara removed their assignment Sep 19, 2017
@kara kara added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Sep 19, 2017
Transfers any classes added to `md-autocomplete` to the resulting panel, allowing for easier styling similarly to `md-menu`.

Fixes angular#4196.
@crisbeto
crisbeto force-pushed the 4196/autocomplete-class branch from 12994d6 to 35f37d2 Compare September 29, 2017 16:28
@andrewseguin

Copy link
Copy Markdown
Contributor

Merging this in but it includes an md- in the comment, can you send another PR that removes md-autocomplete and changes it to autocomplete or mat-autocomplete?

@andrewseguin
andrewseguin merged commit f8cd790 into angular:master Sep 29, 2017
crisbeto added a commit to crisbeto/material2 that referenced this pull request Sep 30, 2017
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request for autocomplete - more control over panel width

5 participants