diff --git a/core/misc/icons/545560/ex.svg b/core/misc/icons/545560/ex.svg index bef63c1022..e75c4a83d8 100644 --- a/core/misc/icons/545560/ex.svg +++ b/core/misc/icons/545560/ex.svg @@ -1 +1 @@ - + \ No newline at end of file diff --git a/core/misc/icons/545560/pencil.svg b/core/misc/icons/545560/pencil.svg index 2808993ddf..e480e3f069 100644 --- a/core/misc/icons/545560/pencil.svg +++ b/core/misc/icons/545560/pencil.svg @@ -1 +1 @@ - + \ No newline at end of file diff --git a/core/themes/claro/claro.theme b/core/themes/claro/claro.theme index 708c9b500c..dd4497f169 100644 --- a/core/themes/claro/claro.theme +++ b/core/themes/claro/claro.theme @@ -1339,7 +1339,8 @@ function claro_form_media_library_add_form_alter(array &$form, FormStateInterfac function claro_form_media_library_add_form_upload_alter(array &$form, FormStateInterface $form_state) { $form['#attributes']['class'][] = 'media-library-add-form--upload'; if (isset($form['container']['upload'])) { - // Set this flag so we can remove the details element. + // Set this flag so we can prevent the details element from being added + // in \Drupal\claro\ClaroPreRender::managedFile. $form['container']['upload']['#do_not_wrap_in_details'] = TRUE; } if (isset($form['container'])) { @@ -1373,6 +1374,7 @@ function claro_preprocess_item_list__media_library_add_form_media_list(array &$v $item['value']['preview']['#attributes']['class'][] = 'media-library-add-form__preview'; $item['value']['fields']['#attributes']['class'][] = 'media-library-add-form__fields'; $item['value']['remove_button']['#attributes']['class'][] = 'media-library-add-form__remove-button'; + $item['value']['remove_button']['#attributes']['class'][] = 'button--extrasmall'; // #source_field_name is set by AddFormBase::buildEntityFormElement() // to help themes and form_alter hooks identify the source field.