Skip to content
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

Close all notifications button #242

Open
andybroomfield opened this issue Apr 14, 2023 · 2 comments
Open

Close all notifications button #242

andybroomfield opened this issue Apr 14, 2023 · 2 comments

Comments

@andybroomfield
Copy link
Contributor

Noticing this on a few localgov drupal sites, notably Cumberland where they have a close all notifications button.

Screenshot 2023-04-14 at 10 23 16 am

They embed this in the last alert banner, so it's reusing the link.
Should we support this officially, with a dedicated link at the bottom / top of all alerts?
We'd need to handle cases where some alerts need to be pernament (can't be hidden).

@andybroomfield
Copy link
Contributor Author

andybroomfield commented Apr 14, 2023

Better screenshot from Cumberland home page demonstrating two banners and single close button.

Screenshot 2023-04-14 at 12 49 50 pm

and video showing close all alerts, and them staying closed.

Cumberland.close.all.alert.banners.mp4.mp4

I see the following cookie

hide-alert-banner-token|alert---31da2a6697112e4ee1216b979072ef63d400894d+alert-19--b668ea97241adb664611039ce3cafc38ea50c468

so it looks like its still using the same hiding behaviour, just triggering it for all visible alert banners (effectivly like clicking hide on each one). So new banners would I presume still show.

@andybroomfield
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant