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

capcurrent class should be defined in all moodle themes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.5, 1.9
    • Fix Version/s: 1.8.6, 1.9.1
    • Component/s: Accessibility, Themes
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      On the roles over-ride page, a capcurrent class is defined in order to highlight those capabilities which are currently "not set" or "inherited", in the ALLOW column. It is extremely important that the current theme has this capcurrent class defined otherwise it won't be highlighted.
      The problem is that in standard theme the capcurrent class is located in styles_color.css:
      #admin-roles-override .capcurrent {
      background-color:#FFFFFF;
      border: 1px solid #cecece;
      }

      The problem occurs when either of the following occur:
      1- the theme's config.php file does not have $THEME->standardsheets = true;
      2- the theme's config.php file does not have $THEME->standardsheets = array('styles_color');
      3- the theme does not define #admin-roles-override .capcurrent {} in its own CSS files.

      At the moment, the (moodle regular distribution) themes which refer to styles_color.css in their config.php file are the following:
      cornflower, metal, oceanblue, standardblue, standardgreen, standardlogo, standardred, standardwhite, wood.

      FIXING SUGGESTIONS:

      1- Those other themes part of moodle distribution should be upgraded so that capcurrent works: chameleon, formal_white. Those two themes are very popular and should be upgraded ASAP.
      2- Themes developers should be advised of this problem. (I have posted a ref. to this bug in the Themes forum).

      Joseph

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/08