$alttext as title attribute

teszek - July 1, 2009 - 11:42
Project:Signwriter
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

<?php
$output
= '<span class="sw-hidden">' . $text . '</span>' . theme('image', $imgsrc, $alttext, $alttext, $attributes);
?>

I think $alttext as title attribute is not a good idea because on hover signwriter image we are seeing a bubble over our signwriter image.

AttachmentSize
noname.png16.72 KB

#1

Justin W Freeman - July 14, 2009 - 12:56
Status:active» fixed

alt text is used for screen readers and things and is necessary for accessibility.

title text is the hover text.

There is now an option on the profile edit page (admin/settings/signwriter/profile/[profile-id]) 'Use image title text' which is turned off by default.
Only if it is checked will title text be added.

#2

System Message - July 28, 2009 - 13:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.