Skip to content
Snippets Groups Projects
Verified Commit abcb2029 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3292488 by berdir, prashant.c, romina_ferrario, _utsavsharma,...

Issue #3292488 by berdir, prashant.c, romina_ferrario, _utsavsharma, gaurav-mathur, smustgrave, lauriii: Move button--small class for add more field widget button to WidgetBase
parent cd5bc868
No related branches found
No related tags found
3 merge requests!5423Draft: Resolve #3329907 "Test2",!3478Issue #3337882: Deleted menus are not removed from content type config,!579Issue #2230909: Simple decimals fail to pass validation
Pipeline #458588 passed
Pipeline: drupal

#458598

    Pipeline: drupal

    #458593

      Pipeline: drupal

      #458589

        ...@@ -286,6 +286,7 @@ protected function formMultipleElements(FieldItemListInterface $items, array &$f ...@@ -286,6 +286,7 @@ protected function formMultipleElements(FieldItemListInterface $items, array &$f
        '#name' => strtr($id_prefix, '-', '_') . '_add_more', '#name' => strtr($id_prefix, '-', '_') . '_add_more',
        '#value' => $this->t('Add another item'), '#value' => $this->t('Add another item'),
        '#attributes' => ['class' => ['field-add-more-submit']], '#attributes' => ['class' => ['field-add-more-submit']],
        '#button_type' => 'small',
        '#limit_validation_errors' => [], '#limit_validation_errors' => [],
        '#submit' => [[static::class, 'addMoreSubmit']], '#submit' => [[static::class, 'addMoreSubmit']],
        '#ajax' => [ '#ajax' => [
        ......
        ...@@ -1113,11 +1113,6 @@ function claro_preprocess_field_multiple_value_form(&$variables): void { ...@@ -1113,11 +1113,6 @@ function claro_preprocess_field_multiple_value_form(&$variables): void {
        } }
        } }
        } }
        // Make add-more button smaller.
        if (!empty($variables['button'])) {
        $variables['button']['#attributes']['class'][] = 'button--small';
        }
        } }
        } }
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment