הוסף כפתור 'סגור' לבאנר הפתיחה

Thanks, its a great component.
Its posible add a “dismiss” button or “close” button (x).

6 לייקים

Really clean and nice banner!

Is it possible to add a dismiss-button, or is that perhaps out of scope for this component?

5 לייקים

If the answer is that there are settings to remove the banner based on trust level (and also for staff) then fine. Still, it would be useful to know, if possible, please. :slight_smile:

4 לייקים

it’s possible to add this functionality, but it has not been added yet

9 לייקים

Hi! I was looking for something like this. Maybe a “close” or “hide” button. It would be really useful for users who have already seen the banner, but don’t want to lose it, just hide it a bit for a cleaner homepage :nerd_face:

Let us know if you add it. Thank you!!

4 לייקים

I’ve added a setting that allows the banner to be dismissed :tada:

After updating the component you’ll have access to a can be dismissed theme setting. When enabled you’ll be able to click the x to hide the banner.

Note that this utilizes browser localStorage, so the dismissal is per-browser. So if you dismiss it on desktop you’ll also need to dismiss it on mobile (this is a limitation with how themes work).

Thanks for the suggestion everyone!

9 לייקים

This topic was automatically closed after 3 days. New replies are no longer allowed.