From a7d169b47b8464896eb9b4c0d955c34b448a43f5 Mon Sep 17 00:00:00 2001
From: Denys Mishunov <dmishunov@gitlab.com>
Date: Thu, 28 Mar 2019 14:31:07 +0100
Subject: [PATCH] Enabled text selection in diffs in Web IDE

Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/47771

Changelog entry
---
 app/assets/stylesheets/page_bundles/ide.scss         | 8 ++++++++
 changelogs/unreleased/47771-highlighting-in-diff.yml | 5 +++++
 2 files changed, 13 insertions(+)
 create mode 100644 changelogs/unreleased/47771-highlighting-in-diff.yml

diff --git a/app/assets/stylesheets/page_bundles/ide.scss b/app/assets/stylesheets/page_bundles/ide.scss
index a80158943c6..0c1067bfacc 100644
--- a/app/assets/stylesheets/page_bundles/ide.scss
+++ b/app/assets/stylesheets/page_bundles/ide.scss
@@ -179,6 +179,14 @@ $ide-commit-header-height: 48px;
     display: none;
   }
 
+  .monaco-editor .selected-text {
+    z-index: 1;
+  }
+
+  .monaco-editor .view-lines {
+    z-index: 2;
+  }
+
   .is-readonly,
   .editor.original {
     .view-lines {
diff --git a/changelogs/unreleased/47771-highlighting-in-diff.yml b/changelogs/unreleased/47771-highlighting-in-diff.yml
new file mode 100644
index 00000000000..a8e8cbf0174
--- /dev/null
+++ b/changelogs/unreleased/47771-highlighting-in-diff.yml
@@ -0,0 +1,5 @@
+---
+title: Enabled text selection highlighting in diffs in Web IDE
+merge_request: 26721
+author: Isaac Smith
+type: fixed
-- 
2.30.9