-
-
Notifications
You must be signed in to change notification settings - Fork 39
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: overflow functionality #121
feat: overflow functionality #121
Conversation
Run & review this pull request in StackBlitz Codeflow. |
@@ -32,6 +32,7 @@ export interface GlobalDialogConfig { | |||
backdrop: CloseStrategy; | |||
}; | |||
resizable: boolean; | |||
overflow: boolean; |
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.
Any reason we need this property?
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.
This is part of the config to allow the user to choose whether they want overflow on the body when the dialog is open or not.
@@ -97,6 +99,6 @@ | |||
} | |||
} | |||
|
|||
body.ngneat-dialog-hidden { | |||
body.ngneat-dialog-hidden:not(.overflow) { | |||
overflow: hidden; |
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 can use a CSS variable instead of a class:
overflow: var(--dialog-overflow, hidden);
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.
Okay, I'm not sure whether this is preferable in this case, but if this is what you prefer, no problem :)
PR Type - Feature
Resolving Issue Number: #116