From 662525d96f914e98622062148e39a8870a3262c2 Mon Sep 17 00:00:00 2001 From: thiagomajesk Date: Tue, 21 Mar 2023 22:48:50 -0300 Subject: [PATCH] WIP --- lib/swish/toast.ex | 5 +++-- lib/swish/toast/group.ex | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/swish/toast.ex b/lib/swish/toast.ex index 91db52f..21405cd 100644 --- a/lib/swish/toast.ex +++ b/lib/swish/toast.ex @@ -79,11 +79,12 @@ defmodule Swish.Toast do <.dynamic_tag :if={@toast.message} id={@toast.id} - role="alert" + role="status" name={(@toast.group && "li") || @as} phx-mounted={show(@toast)} phx-click={hide(@toast)} - aria-live="off" + aria-live="polite" + aria-atomic="true" tabindex="0" {@rest} > diff --git a/lib/swish/toast/group.ex b/lib/swish/toast/group.ex index b275007..128a4a1 100644 --- a/lib/swish/toast/group.ex +++ b/lib/swish/toast/group.ex @@ -29,7 +29,7 @@ defmodule Swish.Toast.Group do ~H""" -
    +
      <%= render_slot(@inner_block, @group) %>