# with aria-live <% flash.each do |msg| %> <p aria-live="polite" aria-atomic="true"><%= msg %></p> <% end %> # with role <% flash.each do |msg| %> <p role="status"><%= msg %></p> <% end %>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter