diff --git a/core/modules/media_library/css/media_library.theme.css b/core/modules/media_library/css/media_library.theme.css index 9f955197da..d5796bb88b 100644 --- a/core/modules/media_library/css/media_library.theme.css +++ b/core/modules/media_library/css/media_library.theme.css @@ -99,6 +99,10 @@ margin: 0 0 1em; } +.media-library-add-form-media { + outline: none; +} + /* Style the media add upload form. */ .media-library-add-form--upload.media-library-add-form--without-input .form-item-upload { margin-bottom: 0; @@ -108,6 +112,10 @@ margin: 8px 0 0; } +.media-library-add-form-description { + margin: 0; +} + /* Style the media add oEmbed form. */ .media-library-add-form--oembed .media-library-add-form-input-wrapper { display: flex; diff --git a/core/modules/media_library/src/Form/AddFormBase.php b/core/modules/media_library/src/Form/AddFormBase.php index 1562c28da8..3658aacb3b 100644 --- a/core/modules/media_library/src/Form/AddFormBase.php +++ b/core/modules/media_library/src/Form/AddFormBase.php @@ -112,7 +112,7 @@ protected function getMediaType(FormStateInterface $form_state) { * {@inheritdoc} */ public function buildForm(array $form, FormStateInterface $form_state) { - $form['#prefix'] = '