vigetlabs / wordpress-site-starter

2 stars 0 forks source link

[#13] Alert JS #39

Closed nathan-schmidt-viget closed 5 months ago

nathan-schmidt-viget commented 5 months ago

Summary

Adds the logic to hide the alerts if the user closes them. We may need to adjust is the ID logic, right now it is pulling the block ID. The other things is the block flashes when the page loads before the Alpine hides the block. Not sure if there is much we can do about that.

Issues

Testing Instructions

  1. Add multiple alerts to the page. I have it working without the custom ID, but we may need that??
  2. Go to the front end and close an alert. Reload the page and make sure it does not show up.

Screenshots

NA

nathan-schmidt-viget commented 5 months ago

@bd-viget or @empee3 Feel free to merge this! As I will be out till midweek next week.