-
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
feat(overlay): add the ability to set a panelClass based on the current connected position #12631
feat(overlay): add the ability to set a panelClass based on the current connected position #12631
Conversation
f848cc4
to
f205299
Compare
@@ -1799,6 +1799,110 @@ describe('FlexibleConnectedPositionStrategy', () => { | |||
}); | |||
}); | |||
|
|||
describe('panel classes', () => { |
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.
Add a test for not removing an existing css class on the element?
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.
Done.
f205299
to
6d89fe4
Compare
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
@crisbeto is the failure on circle ci real? |
…nt connected position Adds a property on the `ConnectedPosition` to allow the consumer to set a class on the overlay pane, depending on which position is currently active.
6d89fe4
to
cc4155e
Compare
Looks like it was a real failure @jelbourn, but it's fixed now. |
Takes advantage of the API introduced in angular#12631 to add a class to the panel automatically, based on its position.
Takes advantage of the API introduced in #12631 to add a class to the panel automatically, based on its position.
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. |
Adds a property on the
ConnectedPosition
to allow the consumer to set a class on the overlay pane, depending on which position is currently active.