-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(menu): add input to add overlay pane classes #19547
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have some code on MatMenu
that proxies the classes from the mat-menu
node to the overlay. Couldn't we take advantage of that?
89eff1c
to
02e995f
Compare
The current panel class input doesn't work because of how we are implementing GMDC. In short, users will import a module GmatMenuModule that import/exports the menu directives. We need to be able to set some custom classname with the module, so this change lets me provide it through the options provider. |
I see. I think in this case it would make more sense to just use the injection token (as you're doing already) without exposing it as an input. Having it be an input means that we'd also have to ensure that the value on the overlay stays in sync with the input value. |
I believe they are distinct - the The
I considered making the injected option affect the existing input but I didn't want to have to deal with figuring out how to make sure we merge the options and input together. |
Sorry, what I meant is that we should do what you're currently doing, but we shouldn't add a new input. IMO the only place the |
970c522
to
bfc0f6c
Compare
bfc0f6c
to
e9f6d92
Compare
Probably would make sense to incrementally add anyways. This is a very niche edge case and would be confusing trying to explain the different between the inputs to users. I removed the input and kept the rest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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. |
Required for GMDC, which needs to automatically add a CSS class to the overlay menu using injected options