ウェルカムバナーに「閉じる」ボタンを追加

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.