aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/abstract/views/abstract_controller/testing
diff options
context:
space:
mode:
authorthenickcox <nick@nickcox.me>2013-02-07 23:07:42 -0800
committerthenickcox <nick@nickcox.me>2013-02-09 20:29:52 -0800
commitdd9f8bc84740654057ddfc26428a4411f151c957 (patch)
treea5450b75f577acff436f03afce589b668c135316 /actionpack/test/abstract/views/abstract_controller/testing
parent408227d9c5ed7de26310d72a1a99c1ee02311c63 (diff)
downloadrails-dd9f8bc84740654057ddfc26428a4411f151c957.tar.gz
rails-dd9f8bc84740654057ddfc26428a4411f151c957.tar.bz2
rails-dd9f8bc84740654057ddfc26428a4411f151c957.zip
Improve img alt attribute for screen readers
Currently, the img_alt method in ActionView keeps underscores in the alt attribute. Because underscores are pronounced in Apple's VoiceOver Utility, this has serious implications for accessibility. This patch makes underscored or hyphenated file names (both common in projects) read more naturally in screen readers by replacing them with spaces. See method documentation for details. Added documentation to image_alt method
Diffstat (limited to 'actionpack/test/abstract/views/abstract_controller/testing')
0 files changed, 0 insertions, 0 deletions