- Issue created by @c_archer
- First commit to issue fork.
- Assigned to valic
- last update
6 months ago 2 pass - 🇭🇷Croatia valic Osijek
Added a new option so that the promo bar can be dismissed.
With JS we can manipulate visibility and removal
- last update
6 months ago 2 pass - last update
6 months ago 2 pass - Status changed to RTBC
6 months ago 11:31am 18 June 2024 - Status changed to Fixed
6 months ago 11:32am 18 June 2024 - 🇭🇷Croatia valic Osijek
1. Dismiss text (or icon, etc) needs to be wrapped in class "dismiss" under main promo bar CSS id "#promo-bar-{id}"
JS then attaches an event to it, and it's handled by JS. Storing in local storage list of dismissed promo bar id's
Example of default template
https://git.drupalcode.org/project/commerce_promo_bar/-/blob/1.0.x/templ...and JS which handles all of that
https://git.drupalcode.org/project/commerce_promo_bar/-/blob/1.0.x/js/pr... Automatically closed - issue fixed for 2 weeks with no activity.