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:
- the theme's config.php file does not have $THEME->standardsheets = true;
- the theme's config.php file does not have $THEME->standardsheets = array('styles_color');
- 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:
- 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.
- Themes developers should be advised of this problem.
Joseph