diff options
author | thenickcox <nick@nickcox.me> | 2013-02-07 23:07:42 -0800 |
---|---|---|
committer | thenickcox <nick@nickcox.me> | 2013-02-09 20:29:52 -0800 |
commit | dd9f8bc84740654057ddfc26428a4411f151c957 (patch) | |
tree | a5450b75f577acff436f03afce589b668c135316 /tools | |
parent | 408227d9c5ed7de26310d72a1a99c1ee02311c63 (diff) | |
download | rails-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 'tools')
0 files changed, 0 insertions, 0 deletions