Theme developers capcurrent "bug"

Theme developers capcurrent "bug"

by Joseph Rézeau -
Number of replies: 1
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi fellow theme developers. Please have a look at MDL-13268 (and vote for it).

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.

Joseph

Average of ratings: -
In reply to Joseph Rézeau

Re: Theme developers capcurrent "bug"

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Themes chameleon and formal_white have been upgraded to fix the capcurrent "bug". Thanks!
Joseph