DEV: Deprecate SCSS variable overrides in plugins (#11589)

This commit is contained in:
Penar Musaraj 2020-12-28 15:28:11 -05:00 committed by GitHub
parent 83841fef8a
commit 7f1bafcf63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,7 @@ class DiscoursePluginRegistry
elsif opts == :color_definitions
self.color_definition_stylesheets[plugin_directory_name] = asset
elsif opts == :variables
Discourse.deprecate(":variables is deprecated", drop_from: "2.7")
self.sass_variables << asset
else
self.stylesheets[plugin_directory_name] ||= Set.new