From ec9585538435a9f2cefcd2d85f48b4b8dfeb2b0d Mon Sep 17 00:00:00 2001
From: Tyler Struyk <tyler.struyk@uwaterloo.ca>
Date: Tue, 10 Aug 2021 06:57:23 -0700
Subject: [PATCH] ISTWCMS-4966: Override drupal core contextual link for
 youtube to show up

---
 css/drupal-core-overrides.css    | 4 ++++
 uw_fdsu_theme_resp.info.yml      | 1 +
 uw_fdsu_theme_resp.libraries.yml | 4 ++++
 3 files changed, 9 insertions(+)
 create mode 100644 css/drupal-core-overrides.css

diff --git a/css/drupal-core-overrides.css b/css/drupal-core-overrides.css
new file mode 100644
index 00000000..898ba924
--- /dev/null
+++ b/css/drupal-core-overrides.css
@@ -0,0 +1,4 @@
+/* Youtube videos will not show without this */
+.uw-remote-video__video .contextual-region {
+  position: initial;
+}
diff --git a/uw_fdsu_theme_resp.info.yml b/uw_fdsu_theme_resp.info.yml
index 1f4b8805..8f9cb4c1 100644
--- a/uw_fdsu_theme_resp.info.yml
+++ b/uw_fdsu_theme_resp.info.yml
@@ -12,6 +12,7 @@ libraries:
   - 'uw_fdsu_theme_resp/global'
   - 'uw_fdsu_theme_resp/uw_ckeditor'
   - 'uw_fdsu_theme_resp/global-message'
+  - 'uw_fdsu_theme_resp/drupal-core-overrides'
 
 # Libraries override allows you to remove libraries added by other projects.
 # libraries-override:
diff --git a/uw_fdsu_theme_resp.libraries.yml b/uw_fdsu_theme_resp.libraries.yml
index a93569a3..3232f6ab 100644
--- a/uw_fdsu_theme_resp.libraries.yml
+++ b/uw_fdsu_theme_resp.libraries.yml
@@ -17,6 +17,10 @@ global-message:
   css:
     theme:
       css/global-message.css: {}
+drupal-core-overrides:
+  css:
+    theme:
+      css/drupal-core-overrides.css: {}
 uw_dashboards:
   css:
     theme:
-- 
GitLab