-
Notifications
You must be signed in to change notification settings - Fork 5
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
Dev Widget Visibility #29
Comments
Ok, so in the console you can trigger it open with Is there anyway to add not have it be unique? Or to add an additional class that is constant? The class I see is but since that Any idea here? |
Another update, sooo, it appears that I can get the id I need from |
After thinking things through a bit I think there are a couple things that could make this easier.
<AnnounceKit
boosters={{
bar: {
mounted: (bar) => // do stuff when booster bar mounted,
onOpen: (bar) => // do stuff,
onClose: (bar) => // do close stuff,
unmounted: () => // do stuff when booster bar unmounts
},
modal: {
mounted: (modal) => // do stuff when booster modal mounted,
onOpen: (modal) => // do stuff,
onClose: (modal) => // do close stuff,
unmounted: () => // do stuff when booster modal unmounts
}}
/> |
The reason I have the |
Not necessarily an Announcekit-React specific question, but that is what I am using.
I have an issue where the Banner that is displayed when an Announcement is sent out, affects the way in which my site works. This is due to a bit of scroll jacking, but that is the design required by designers.
The issue, which is a hunch because I don't have an actual banner to work with, is that the css for the banner is adding some margin to the body. It is this extra space that is breaking how the design works.
So my question, is there a way to trigger the display of a banner (or any other widget) so that I can work on this bug without having to have Product team send out an Announcement and all the users see it?
I am hoping that Announcekit adds a class to the
body
something like<body class="announcekit-banner">
because then I can write a css style that removes the added margin from the bottom when that class is present and leave things alone when NOT present.If Announcekit is adding margin directly to body, like:
Then that is going to be significantly more effort to deal with.
But without the ability to see an actual banner, then I am not sure I can actually definitively figure this out.
Thanks in advance!
The text was updated successfully, but these errors were encountered: