Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-40812

Provide a mechanism for themes and course formats to pass CSS selectors to M.cfg

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: JavaScript
    • Labels:
    • Affected Branches:
      MOODLE_25_STABLE

      Description

      There have been a variety of recent JS modules which make assumptions about the state of the theme. Specifically, that it will have certain elements which are to be found in base.

      However, with bootstrapbase, and people removing these in layouts, we frequently see various breakages and frustrations.

      What we need is some way to include various CSS selectors defined in the theme to our JS configuration so that JS modules can consume these. We'll also need to be able to add/overwrite these at various places including:

      • themes
      • course formats

      I suggest we either add these to M.cfg, or a new part of the M object.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              dobedobedoh Andrew Nicols
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: