Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete should have an input for panelClass #7021

Closed
asw225 opened this issue Sep 12, 2017 · 4 comments
Closed

Autocomplete should have an input for panelClass #7021

asw225 opened this issue Sep 12, 2017 · 4 comments

Comments

@asw225
Copy link

asw225 commented Sep 12, 2017

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

There should be a way to style the panel created by the autocomplete component.

What is the current behavior?

The mat-autocomplete-panel div is added dynamically, outside the current component. The only way to specify styles would be to use a /deep/ selector. But this only works globally, so there would be no way to style the panels of individual autocompletes.

What are the steps to reproduce?

Any use of mat-autocomplete.

What is the use-case or motivation for changing an existing behavior?

Sizing is one possible use case for specifying styles on the autocomplete panel. Current behavior will truncate the options if their widths exceed the width of the panel. Adding a style to the panel such as min-width: fit-content would be a desirable solution.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

All versions.

Is there anything else we should know?

The solution should be essentially the same as #4485

@willshowell
Copy link
Contributor

PR has been opened #6618 but not yet reviewed

@Splaktar
Copy link
Member

Seems like a duplicate of #4196.

@crisbeto
Copy link
Member

Closing as a dupe of #4196.

@angular-automatic-lock-bot
Copy link

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
None yet
Projects
None yet
Development

No branches or pull requests

4 participants