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

feat: overflow functionality #121

Merged

Conversation

vicky-polatov
Copy link
Contributor

PR Type - Feature
Resolving Issue Number: #116

Copy link

stackblitz bot commented Apr 28, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@@ -32,6 +32,7 @@ export interface GlobalDialogConfig {
backdrop: CloseStrategy;
};
resizable: boolean;
overflow: boolean;
Copy link
Member

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?

Copy link
Contributor Author

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;
Copy link
Member

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);

Copy link
Contributor Author

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 :)

@NetanelBasal NetanelBasal merged commit f8da4bf into ngneat:master Apr 30, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants