Allow overriding of elements that are automatically converted to "form-inline"

Created on 11 April 2017, about 7 years ago
Updated 30 October 2023, 8 months ago

Hi,
Here is another couple of lines I always need to undo in my child themes. Is there a reason for the base theme to add the class "form-inline" to all elements of a certain type? It makes the forms elements display in an inconsistant manner.
Maybe this behaviour could be opted in with a setting in the appearance form?

@@ -66,9 +66,6 @@ public static function process(array $element, FormStateInterface $form_state, a
     if ($e->hasClass('container-inline')) {
       $e->replaceClass('container-inline', 'form-inline');
     }
-    if ($e->isType(['color', 'date', 'number', 'range', 'tel', 'weight'])) {
-      $e->addClass('form-inline', 'wrapper_attributes');
-    }
 
     // Process input groups.
     if ($e->getProperty('input') && ($e->getProperty('input_group') || $e->getProperty('input_group_button'))) {
✨ Feature request
Status

Closed: won't fix

Version

4.0

Component

Code

Created by

πŸ‡ΈπŸ‡ͺSweden joos

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024