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

[Question] Example on how to position the toast relative to a parent container #66

Closed
martinmckenna opened this issue Feb 8, 2019 · 2 comments

Comments

@martinmckenna
Copy link
Contributor

I'm wondering how exactly one would go about positioning the toast relative to a container div, rather than entire body.

In our project, we've tried creating our own refs and even changing where in the DOM tree the Provider component was initialized but nothing seems to work

@iamhosseindhv
Copy link
Owner

iamhosseindhv commented Feb 18, 2019

I'm trying to apply CSS class directly to <Snackbar /> element. One example of it would be changing elements position property from fixed to absolute (ie. I'm trying to position snackbars relative to container, not window). #11 (comment)

@BornaP Not sure if you can but I'd appreciate if you could help regarding this.

@iamhosseindhv
Copy link
Owner

iamhosseindhv commented Mar 1, 2019

Closed due to inactivity. feel free to reopen

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

No branches or pull requests

2 participants