Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Highlighting the last item in the Site Tree


Go to End


2 Posts   1582 Views

Avatar
Nathan Cox

Community Member, 99 Posts

4 July 2007 at 2:36am

I noticed that the last item on any level of the site tree (or should I say the last child of any item) doesn't highlight correctly when you select it.
This is because the .last class is overriding the background for the .current class.

On line 50 of /jsparty/tree/tree.css, change

ul.tree span.a.last {

to

ul.tree .a.last {

It makes the rule is less specific, so it's overwritten by .current and the background colour appears as it should.

Avatar
Tim

Community Member, 201 Posts

4 July 2007 at 9:20am

Thanks for these patches Nathan - these will be applied to the main branch in the latter this week.