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

INAScon created an issue. See original summary.

joelpittet’s picture

Could you provide a patch for this?

osab’s picture

It 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.

mgifford’s picture

adding related issue identified by osab.