Skip to content

Commit

Permalink
Merge pull request #35718 from openedx/farhan/sass-to-css-poll-block-2
Browse files Browse the repository at this point in the history
Dropping Sass support from builtin poll block
  • Loading branch information
farhan authored Oct 30, 2024
2 parents 338a0a1 + 7f1611e commit 5cba2b7
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 231 deletions.
3 changes: 0 additions & 3 deletions xmodule/assets/PollBlockDisplay.scss

This file was deleted.

226 changes: 0 additions & 226 deletions xmodule/assets/poll/_display.scss

This file was deleted.

4 changes: 2 additions & 2 deletions xmodule/poll_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from openedx.core.djangolib.markup import Text, HTML
from xmodule.mako_block import MakoTemplateBlockBase
from xmodule.stringify import stringify_children
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 @@ -136,7 +136,7 @@ def student_view(self, _context):
'configuration_json': self.dump_poll(),
}
fragment.add_content(self.runtime.service(self, 'mako').render_lms_template('poll.html', params))
add_sass_to_fragment(fragment, 'PollBlockDisplay.scss')
add_css_to_fragment(fragment, 'PollBlockDisplay.css')
add_webpack_js_to_fragment(fragment, 'PollBlockDisplay')
shim_xmodule_js(fragment, 'Poll')
return fragment
Expand Down
Loading

0 comments on commit 5cba2b7

Please sign in to comment.