Language switcher written on JS causes CLS issue

Created on 24 February 2023, over 1 year ago
Updated 27 February 2023, over 1 year ago

Problem/Motivation

There is CLS issue with dropdown logic due to applying classes via js behaviour.

Steps to reproduce

This can be reproduced if there are many languages with full name in the list

Proposed resolution

Solution: dropdown condition can be applied via backend

Data model changes

Manual changes are required for all existing projects after upgrading the module with this change.

Copy-paste the following templates/js/css file changes from the module and put them into your project theme:
- menu--language.js
- _menu--language.scss
- _links--language.twig
- hook_preprocess_links__language_block

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine nginex

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

Comments & Activities

Production build 0.71.5 2024