Makes flash messages an ARIA alert

pull/876/head
Hagen Schink 11 years ago committed by Christian Ratz
parent 4204e30528
commit 916fb7fb55
  1. 2
      app/helpers/application_helper.rb

@ -290,7 +290,7 @@ module ApplicationHelper
end
def render_flash_message(type, message, html_options = {})
html_options = {:class => "flash #{type} icon icon-#{type}"}.merge(html_options)
html_options = { :class => "flash #{type} icon icon-#{type}", role: "alert" }.merge(html_options)
if User.current.impaired?
content_tag('div', content_tag('a', join_flash_messages(message), :href => 'javascript:;'), html_options)
else

Loading…
Cancel
Save