Opened 13 years ago
Closed 13 years ago
#19453 closed defect (bug) (fixed)
CSS for bulleted un/ordered lists in wp-admin not working
Reported by: | trepmal | Owned by: | ryan |
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | normal | Version: | 3.3 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
Ordered and unordered lists in the admin are a bit naked, even when the predefined classes are used.
The classes (ul-disc, ul-square, ol-decimal) aren't used much in core. At a glance, it looks like ul-disc is the only class used, and it adds bullets to the list of files that would be deleted upon removing a plugins or network-activated themes.
Here's my test plugin: https://gist.github.com/1436969 - creates a page and meta box, each with 5 lists.
ul, ul.ul-disc, ul.ul-square, ol, ol.ol-decimal
The ul/ol classes aren't quite specific enough to overwrite list-style:none; given to unclassed <li>s. Patch just makes the selectors a bit more specific.
Attachments (6)
Change History (14)
#5
@
13 years ago
Looks like in 3.2 and earlier the reset was only on the parents ul, ol {list-style: none;}
and then OLs were set to list-style-type: decimal;
so they were always with numbers.
To fully restore that we need to change:
ul li, ol li { list-style: none; }
to:
ul { list-style: none; }
#6
@
13 years ago
I've uploaded a new patch that tweaks the selectors in attachment:wp-admin.dev-bullets.diff and includes attachment:19453.patch.
For the first patch — those selectors are used in 3.2, but not to specify the list-style property. See these selectors in the 3.2 branch.
The classes seemed to be working just fine on 3.2.1 - but maybe I tested too quickly...