Selected tab css selector.

Selected tab css selector.

by Stuart Anderson -
Number of replies: 2
Hi,

I changed my theme css so that 'selected' tabs are more obvious to the user (see attached image. However, the 1.8+ css selector names are a little confusing. the 'selected' css selector name appears to be either ".here" or ".selected" and this isn't consistent across moodle. At the moment I just define my css for both cases. What is/will be the correct selector to use in the long term e.i. 1.9 and beyond? It seems overkill to have to define them both.

Thanks,

Stuart
Attachment moodle_snapshot1.gif
Average of ratings: -
In reply to Stuart Anderson

Re: Selected tab css selector.

by Urs Hunkler -
Picture of Core developers

I see. Please create an issue in the Moodle tracker. Then the involved people can find a solution.

In reply to Urs Hunkler

Re: Selected tab css selector.

by Stuart Anderson -
OK, after further investigation I think I understand the convention that is being used. If a tab is clicked on, it will always use the selector "here". If it has a second layer of sub-options in row1, it will also have an "active" selector, if there is no row1 set of sub-options, it will have a "selected" selector.

Therefore, this is not a bug, but a little bit confusing none-the-less.

--Stuart.