Improve chosen-single size

Created on 1 April 2024, 3 months ago
Updated 24 April 2024, 2 months ago

Problem/Motivation

The chosen-single drop down has a span which is not properly styled like all the other drop downs near it.

Steps to reproduce

From a default drupal install..
Install drupal/chosen - composer require drupal/chosen
Get javascript libraries zip file from https://github.com/harvesthq/chosen/releases/, unpack to
/libraries/chosen
enable module drush en chosen Go to admin/config/user-interface/chosen and change 'Minimum number of options for single select' to something small, like 3 or 4.
Go to /admin/content and the Language and / or Content type should not be the same size as other displayed boxes.

From the screen shots, you can see
before



after

Proposed resolution

Remove the padding on the chosen-single class, and apply to span class instead.

🐛 Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

🇳🇿New Zealand atowl

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024