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

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 2.5
    • JavaScript
    • MOODLE_25_STABLE

      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.

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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