Add a 'dismiss' button to the Welcome Banner

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

6 Likes

Really clean and nice banner!

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

5 Likes

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 Likes

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

9 Likes

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 Likes

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 Likes

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