Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagomajesk committed Mar 22, 2023
1 parent 214a8fd commit 662525d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/swish/toast.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
>
Expand Down
2 changes: 1 addition & 1 deletion lib/swish/toast/group.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defmodule Swish.Toast.Group do

~H"""
<Swish.Tag.portal id={@group.portal_id} phx-mounted={JS.dispatch("portal:open")}>
<ol tabindex="-1" {@rest}>
<ol tabindex="-1" {@rest} role="region">
<%= render_slot(@inner_block, @group) %>
</ol>
</Swish.Tag.portal>
Expand Down

0 comments on commit 662525d

Please sign in to comment.