From 218b9f43b304b471528beabc8b11f72f7650154c Mon Sep 17 00:00:00 2001
From: shriram <saravananshriram80@gmail.com>
Date: Thu, 10 Nov 2022 14:56:58 -0400
Subject: [PATCH] added islandora.libraries.yml

---
 css/islandora.theme.css | 3 +++
 islandora.libraries.yml | 5 +++++
 islandora.module        | 4 ++--
 3 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 css/islandora.theme.css
 create mode 100644 islandora.libraries.yml

diff --git a/css/islandora.theme.css b/css/islandora.theme.css
new file mode 100644
index 00000000..696587ac
--- /dev/null
+++ b/css/islandora.theme.css
@@ -0,0 +1,3 @@
+.container .islandora-media-items {
+  margin: 0;
+}
diff --git a/islandora.libraries.yml b/islandora.libraries.yml
new file mode 100644
index 00000000..047006bf
--- /dev/null
+++ b/islandora.libraries.yml
@@ -0,0 +1,5 @@
+drupal.islandora.theme_css:
+  version: VERSION
+  css:
+    theme:
+      css/islandora.theme.css: {}
diff --git a/islandora.module b/islandora.module
index 00b54a01..d079aae6 100644
--- a/islandora.module
+++ b/islandora.module
@@ -357,8 +357,8 @@ function islandora_form_alter(&$form, FormStateInterface $form_state, $form_id)
           '#theme' => 'item_list',
           '#type' => 'ul',
           '#items' => $media_list,
-          '#attributes' => ['class' => 'mylist'],
-          '#wrapper_attributes' => ['class' => 'container'],
+          '#attributes' => ['class' => ['islandora-media-items']],
+          '#wrapper_attributes' => ['class' => ['container']],
           '#attached' => [
             'library' => [
               'islandora/drupal.islandora.theme_css',