discourse/spec/components/stylesheet
Osama Sayegh c0e2fdd200
FIX: Components mobile-specific CSS was missing (#12259)
Fix for: https://meta.discourse.org/t/our-components-stop-working/181580?u=osama.

This fixes an old hidden bug that was exposed in cf0192018e. The bug is that we call the `Stylesheet::Manager.stylesheet_details` method with the `target` arg as `:mobile_theme` when we want to retrieve a theme component's mobile CSS. The problem is that this `target` value will at some point be looked up in the `Theme.targets` enum which doesn't have a `:mobile_theme` key, instead it has `:mobile` key.

This commit adds a step that removes the `_theme` suffix in the `Theme.list_baked_fields` method to fix this problem.
2021-03-02 17:20:43 +03:00
..
compiler_spec.rb DEV: Refactor theme SCSS compilation (#11919) 2021-02-02 13:09:41 -05:00
importer_spec.rb DEV: More refactoring of SCSS importers (#12143) 2021-02-19 11:22:24 -05:00
manager_spec.rb FIX: Components mobile-specific CSS was missing (#12259) 2021-03-02 17:20:43 +03:00