Skip to content

Commit

Permalink
feat!: Dropping Sass support from builtin custom tag block
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan committed Sep 23, 2024
1 parent a509763 commit ce09162
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions xmodule/assets/CustomTagBlockEditor.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.xmodule_edit.xmodule_CustomTagBlock .CodeMirror {
background: #fff;
font-size: 13px;
color: #3c3c3c;
}
3 changes: 0 additions & 3 deletions xmodule/assets/CustomTagBlockEditor.scss

This file was deleted.

4 changes: 2 additions & 2 deletions xmodule/template_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from web_fragments.fragment import Fragment
from xmodule.editing_block import EditingMixin
from xmodule.raw_block import RawMixin
from xmodule.util.builtin_assets import add_webpack_js_to_fragment, add_sass_to_fragment
from xmodule.util.builtin_assets import add_webpack_js_to_fragment, add_css_to_fragment
from xmodule.x_module import (
ResourceTemplates,
shim_xmodule_js,
Expand Down Expand Up @@ -69,7 +69,7 @@ def studio_view(self, _context):
fragment = Fragment(
self.runtime.service(self, 'mako').render_cms_template(self.mako_template, self.get_context())
)
add_sass_to_fragment(fragment, 'CustomTagBlockEditor.scss')
add_css_to_fragment(fragment, 'CustomTagBlockEditor.css')
add_webpack_js_to_fragment(fragment, 'CustomTagBlockEditor')
shim_xmodule_js(fragment, 'XMLEditingDescriptor')
return fragment
Expand Down

0 comments on commit ce09162

Please sign in to comment.