Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The function ctools_ajax_text_button has an argument $alt. However, that argument is not used as the value for the alt attribute, but for the title attribute.
For accessibility, the title attribute is of no value, e.g. some screen readers ignore it, and it is preferred to use the alt attribute, as the name of the argument already suggests.
Comments
Comment #2
joelpittetCould you provide a patch for this?
Comment #3
osab CreditAttribution: osab as a volunteer and at AnyforSoft, Drupal Ukraine Community for Drupal Ukraine Community commentedIt looks like this issue related to https://www.drupal.org/project/ctools/issues/2890297 (about making ctools_ajax_image_button() work separately from ctools_ajax_text_button() ). In this case ctools_ajax_image_button() can be updated for adding "alt" tag for image button.
Comment #4
mgiffordadding related issue identified by osab.