FIX: Improve SCSS handling in components (#11963)

- ignores errors when including component SCSS in parent theme
- adds support for SCSS `@import`s in components' `color_definitions.scss` files
This commit is contained in:
Penar Musaraj
2021-02-04 08:51:18 -05:00
committed by GitHub
parent b580e3e657
commit 12ffba771c
4 changed files with 33 additions and 13 deletions

View File

@ -807,6 +807,13 @@ HTML
expect(parent_css).to include("body{background:green}")
end
it "does not fail if child theme has SCSS errors" do
child_theme.set_field(target: :common, name: :scss, value: 'p {color: $missing_var;}')
child_theme.save!
parent_css, _parent_map = compiler
expect(parent_css).to include("sourceMappingURL")
end
end
describe "scss_variables" do