Automatically use radio buttons for "small enums" and dropdown for "big enums"

Created on 17 January 2025, 3 months ago

Overview

At #3497669-3: Extend test coverage for checkboxes + radios I asked for test coverage in prop-types.cy.js. @balintbrews responded at #3497669-4: Extend test coverage for checkboxes + radios that no SDC currently generates such a field widget.

Proposed resolution

Make smarter, and automatically pick either options_buttons (aka radio buttons) or options_select (aka <select>) based on the number of valid values listed in the enum.

User interface changes

No longer <select> for every enum:

📌 Task
Status

Active

Version

0.0

Component

Shape matching

Created by

🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

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

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024