Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2219

Remote add-ons cannot use app's SCSS variables

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 3.3.1
    • Remote addons
    • MOODLE_33_STABLE

      I was trying to use variables, in my remote addon SCSS, such as:

      $gray-dark
      $item-avatar-width
      $item-avatar-height
      

      But when running `gulp remoteaddon -p ...` the SCSS file cannot compile because the variables are not defined.

      I understand that remote addons will never inherit from the styles of custom apps, but allowing variables to be used helps keeping consistency with the default app. It also helps when the addon is added as an addon to the app build itself, not as a remote addon.

      To fix this it appears as we would need to exclude all styles except for variables when compiling the addon SCSS combined with the app's SCSS.

            jleyva Juan Leyva
            fred Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.