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

Remote add-ons cannot use app's SCSS variables

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.3.1
    • Fix Version/s: None
    • Component/s: Remote addons
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: