-
Notifications
You must be signed in to change notification settings - Fork 116
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
Sticky alerts (Toasts) #69
Comments
I don't exactly understand what you are asking. Are you asking for a close button inside a pre-compiled alert? |
in simple word YES, now I manage to write click handler to close it, I think it should have an option to close with animation, the same way it's opened. |
But you can just put a close button inside your pre-compiled alert like so: |
No it doesn't work. |
Kindly post the code or at least make a Codepen. It worked for me, and there is no reason it shouldn't. |
I am using react next js to work with your plugin <div className="sticky-alerts bottom-0" style={{top: "auto", right: -75}}>
<div className="alert card shadow-lg border-0 w-three-quarter filled mr-0" id="precompiled-alert-1">
<div className="d-flex justify-content-between">
<h6 className="text-theme-color my-auto font-weight-bold">Blockchain Metrics Notification</h6>
<button class="close" data-dismiss="alert" type="button" aria-label="Close">×</button>
</div>
</div>
</div> |
Since you are using React, I recommend the following:
Please let me know if that solves your problem. If this doesn't solve it, I would recommend posting a question on a React/Next.JS support forum, maybe even Stack Overflow. |
This is how I achieved it -
Method:
|
I just tried to use Sticky alerts (Toasts) but unfortunately for Toasting a precompiled alert version there is no dismiss-able button or option which surely would require, foolish UX flaw generally speaking.
Any luck? is it there already or when can it be expected?
The text was updated successfully, but these errors were encountered: