Use Rivet Dropdown for Drupal Dropbuttons

Created on 9 July 2024, 4 months ago
Updated 23 July 2024, 4 months ago

Problem/Motivation

Rivet has a dropdown style that could be leveraged for Drupal's dropbuttons.

I have a proof of concept here that proves two things:

  1. the rvt-dropdown indeed works with a rvt-segmented-button, to separate the primary action link from the dropdown toggle.
  2. the rvt-segmented-button works with links not just button tags.

https://codepen.io/jameswilson/pen/rNEaxmj?editors=1000

Proposed resolution

  • Update dropbutton-wrapper.html.twig to use rvt-dropdown.
  • Implement links--dropbutton.html.twig to use rvt-segmented-button and the rvt-dropdown__toggle functionality.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇪🇨Ecuador jwilson3

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

Comments & Activities

Production build 0.71.5 2024