0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00
astro/.changeset/hungry-needles-cough.md
Erika 3307cb34f1
Add new levels of notification for dev toolbar apps (#10252)
* Add new levels of notification

* feat: proper support

* chore: changeset

* fix: remove unrelated change

* test: add test

* feat: implement new icons

* fix: go back to previous layout

* fix: custom app number

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-03-08 11:53:48 +01:00

337 B

astro
minor

Adds support for emitting warning and info notifications from dev toolbar apps.

When using the toggle-notification event, the severity can be specified through detail.level:

eventTarget.dispatchEvent(
  new CustomEvent("toggle-notification", {
    detail: {
      level: "warning",
    },
  })
);