diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-14 00:09:12 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-14 00:09:12 +0300 |
commit | 4ea2496094922fc17d9f7f84c2a44d691c483190 (patch) | |
tree | 1c9824c696e3deca5f0a5be96617e9d6659d90b3 /app/assets/javascripts/content_editor | |
parent | d4a7d0bec23c624bd0e7d690bdc0cb3fe8387378 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/content_editor')
-rw-r--r-- | app/assets/javascripts/content_editor/components/wrappers/code_block.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/content_editor/components/wrappers/code_block.vue b/app/assets/javascripts/content_editor/components/wrappers/code_block.vue index 343616db3d6..647f0798364 100644 --- a/app/assets/javascripts/content_editor/components/wrappers/code_block.vue +++ b/app/assets/javascripts/content_editor/components/wrappers/code_block.vue @@ -28,10 +28,14 @@ export default { i18n: { frontmatter: __('frontmatter'), }, + userColorScheme: gon.user_color_scheme, }; </script> <template> - <node-view-wrapper class="content-editor-code-block gl-relative code highlight" as="pre"> + <node-view-wrapper + :class="`content-editor-code-block gl-relative code highlight ${$options.userColorScheme}`" + as="pre" + > <span v-if="node.attrs.isFrontmatter" data-testid="frontmatter-label" |