Remove code for rating Google translate translations?

Created on 11 February 2025, about 2 months ago

Problem/Motivation

The google rating forms creates accessibility errors for AA - see errors below in attached file. I am not sure if this is in the code because its required by the Translate API or whether its optional code.

Steps to reproduce

Run a test on a site using the Google translate module using WAVE tool https://wave.webaim.org You can try our site because we are hosting the code http://franklin.uga.edu. You will see the five missing form label errors. We are not able to resolve this but we are required to by law because state and federally funded organizations have to comply with AA accessibility.

Proposed resolution

Remove the rating code or add form labels for accessibility

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States stsharp

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

  • Issue created by @stsharp
  • πŸ‡ΊπŸ‡ΈUnited States jenna.tollerson Atlanta, Georgia, USA

    Hi there, thank you for your report.

    Unfortunately, that code comes directly from Google's script upstream and cannot be removed. As discussed in #3468147 πŸ’¬ Document API/pricing requirements Fixed , Google stopped supporting Google Website Translator in 2019, so I don't imagine they'll be making any changes.

    I thought about hiding this form with styles, but in all of my tests it looks like the entire ratings form is already hidden with display: none; and as such won't have any real accessibility impact. Despite loading translations in different browsers, I can't get the ratings form or a prompt to rate the translation to appear.

    I will note that these Missing form label errors don't show up in a Lighthouse accessibility report run against http://franklin.uga.edu, likely because of the display: none; already applied. It seems WAVE is being imprecise and giving you a false positive.

Production build 0.71.5 2024