Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Paragraphs Collection directly integrates with select2 library in paragraphs_collection_libraries_info()
.
Since recently, there is a Drupal module that provides integration with Select2 library.
Among other things, it provides better styling for the default admin (Seven) theme. See #3001987: Do not use own design.
Proposed resolution
Paragraphs Collection should try to rely on select2 module instead directly using the library.
Keep in mind that we should not add a dependency to the module but only (re)use it if the module is available/enabled.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#4 | 3003494-use-select2-module-4.patch | 7.64 KB | Primsi |
| |||
#4 | 3003494-use-select2-module-3.interdiff.txt | 1.12 KB | Primsi |
#3 | 3003494-use-select2-module.png | 42.93 KB | Primsi |
#3 | 3003494-use-select2-module-3.patch | 7.6 KB | Primsi |
|
Comments
Comment #2
BerdirSo the idea would be that we drop our own custom select2 library and styling, and then in the form, we do something like this (pseudo code):
Comment #3
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedComment #4
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedAdded width auto.
Comment #6
BerdirNice :)