Problem/Motivation

In reviewing #2994699-71: Create a CKEditor plugin to select and embed a media item from the Media Library, @webchick pointed out:

It's a little odd that checkboxes are presented here (indicating multiple selections are possible), but your choices are limited to only one. Radio buttons would be the standard UI element for this kind of choice. However this is a "pre-existing condition" with any time the Media Library is showing you a group of things you are limited to only being able to select 1 of, so fine to handle in a follow-up (and just "normal" priority; there are other visual indicators like the disabling of controls and the fading out of the other selections and the tiny, tiny text in the lower-right saying "0 of 1 selected" to help you understand that you can only select one thing).

Changing those checkboxes to radio buttons if only one item can be selected would probably be a usability (and maybe even accessibility) improvement, but it's out of scope to fix in that issue. So, let's do it here!

Proposed resolution

Figure out if switching to radios for a single-selection situation would be feasible and desirable. And if it is, implement it.

Remaining tasks

Determine if we even want to do this, and what usability concerns may exist.

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD

Comments

phenaproxima created an issue. See original summary.

berdir’s picture

/insert generic rant about entity browser/media library duplication :)

#2845941: Enable view to select just a single entry

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

johnpitcairn’s picture

IMO this would be a very desirable UX improvement. It's not at all clear to my editors that the reason they can't select a different image in the media browser is that they first have to deselect the currently-selected image, which may not even be onscreen in the modal.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

asarfaraz’s picture

+1 for #9. Automatic switch b/w select/radio based on field cardinality would be great UX improvement.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.