feat: host toasts and alerts in the shell
This commit is contained in:
@@ -65,7 +65,7 @@ input = ["button"]
|
||||
clipboard = ["button"]
|
||||
popover = []
|
||||
scroll_area = ["scrollbar"]
|
||||
scrollbar = []
|
||||
scrollbar = ["scroll_area"]
|
||||
segmented = []
|
||||
separator = []
|
||||
spinner = []
|
||||
|
||||
@@ -338,6 +338,7 @@ impl RenderOnce for AlertsView {
|
||||
div()
|
||||
.relative()
|
||||
.w_full()
|
||||
.debug_selector(|| "alert-entry".to_string())
|
||||
.child(entry.alert.clone())
|
||||
.with_animation(
|
||||
("alert-enter", id),
|
||||
|
||||
@@ -283,6 +283,7 @@ impl ToastEntry {
|
||||
|
||||
div()
|
||||
.id(("toast", id))
|
||||
.debug_selector(|| "toast-pill".to_string())
|
||||
.role(Role::Alert)
|
||||
.aria_label(toast.message.clone())
|
||||
.max_w(TOAST_MAX_WIDTH)
|
||||
|
||||
Reference in New Issue
Block a user