HomePhabricator

Don't use JavaScript to style first sidebar portlet

Authored by matmarex.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Don't use JavaScript to style first sidebar portlet

We were adding a .first CSS class to the portlet from JavaScript
instead of just using a smarter selector, which caused the incorrectly
styled portlet to visibly flash sometimes.

This was only useful for IE 6 (even IE 7 supports the sibling selector
'+', which we can use here), and we don't serve JavaScript to it
anymore. It would be neater to use ':first-of-type', but that's not as
widely supported.

Bug: T89542
Change-Id: I1904b3899c43bca52a6c996b8ce08c8bdf764aa0
(cherry picked from commit 16e16eb0751aa42efd3a076b66c0761b23b266fd)

Details

Committed
oriFeb 15 2015, 3:44 AM
ChangeId
I1904b3899c43bca52a6c996b8ce08c8bdf764aa0

Commit No Longer Exists

This commit no longer exists in the repository.