[PLAN] DropButton JS UX enhancements: Make first-item open (like arrow does).

Created on 22 September 2023, 9 months ago
Updated 22 November 2023, 7 months ago

Problem/Motivation

Now user can only click the small arrow button to switch languages, while the arrow button is small. Is it possible to include the language text in the onchange action?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡¨πŸ‡³China hongqing

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

Comments & Activities

  • Issue created by @hongqing
  • πŸ‡¨πŸ‡¦Canada SKAUGHT

    This module uses Drupal Core own 'Drop Button' element. At this time i do not plan on moving away from the element. Core is planning an element called "split button' to replace drop-botton (but this is still pending)

    i'll leave this open should others wish to begin an OPTION FOR OTHER RENDER that would be this 'new JS button'.

    thanks! (scott)

  • πŸ‡ΊπŸ‡ΈUnited States W01F

    Came here looking for this exact thing - I did some wonky CSS to make it more user friendly on mobile, but agree with original poster that having the entire "button", text + arrow, would be more intuitive and easier to use OOB.

  • πŸ‡¨πŸ‡¦Canada SKAUGHT

    I think we need to re-title this issue. some of this problem is the fact that DropButton (a core element) should 'Make language clickable" via JS to open the opened list of translation links for the content.

    - aria considerations
    - LTR: custom theme options for this project. IMO: initial project guide to use core element does have it's own limits/concerns to project. indeed, maybe time for Us to expand..

Production build 0.69.0 2024