Accessibility: add aria-label to the button

Created on 12 December 2025, about 2 months ago

Problem/Motivation

When I tested my project with Lighthouse, I got this:
Accessibility: Buttons do not have an accessible name
It failed this test because the element has no associated text.

Steps to reproduce

- Add a languages_dropdown to a project
- Open project in Chrome and run a Lighthouse test

Proposed resolution

Add aria-label="{{ 'Language selection'|t }}" to the element in languages_dropdown/templates/lang-drop-bootstrap-block.html.twig

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

🇧🇪Belgium flyke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024