-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Add custom class to cdk-overlay-pane in menu #10062
Comments
Have you tried |
|
So you want to change things like the transparent backdrop color? (Because the |
i want to insert custom class here http://joxi.ru/EA4ZvZ5iD8pOxm, not in menu |
I think it's a slippery slope if we start adding inputs for all the different elements that leads us to having a bunch of inputs that just proxy classes. You can still add a class to the |
ok, maybe property like |
Allows for the backdrop class of a menu to be overwritten. Fixes angular#10062.
Allows for the backdrop class of a menu to be overwritten. Fixes #10062.
Allows for the backdrop class of a menu to be overwritten. Fixes angular#10062.
it's nice that you guys addressed this feature. But would it be possible to merge it in the current stable version published on npm? MaterialDesignGuid advice to add a semi transparent white overlay on mobile devices behind floating action buttons menues. With this feature you can add such a class on the cdk overlay. Because Angular 6 is still rc and a lot of modules are not adopt to it, i can not switch to your latest version. Or do you have an advice how to get this in 5.2.5 ? Thanks, Micha. |
I succeed to add css for panel with [backdropClass]="'full-width'" and the css :
|
Can you provide your code in more detail? I'm trying to style the .cdk-overlay-pane for the mat-autocomplete without it affecting the .cdk-overlay-pane for my mat-menu of another element! But i don't know which element can have this [backdropClass]="full-width". I tried it on the mat-autocomplete, but it says that [backdropClass] is not a known input ! |
Take a look (on docs) at |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Proposal
What is the expected behavior?
cdk-overlay-pane in menu have additional class to customize not only content of menu but all menu block
What is the current behavior?
There is no possibility to add custom class without hacks
What are the steps to reproduce?
http://joxi.ru/nAyM8MjtX6gb5A
What is the use-case or motivation for changing an existing behavior?
Want to have possibility to change all menu not only content inside
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
In case of adding only class i think it is doesnt matter
Is there anything else we should know?
No
The text was updated successfully, but these errors were encountered: