Make WordPress Core

Opened 11 years ago

Last modified 7 years ago

#32507 new enhancement

Admin notices remove styling of lists

Reported by: sciamannikoo Owned by:
Priority: normal Milestone:
Component: Administration Version: 4.2.2
Severity: normal Keywords:
Cc: Focuses: ui, administration

Description

Create an admin notice which contains an unordered or odered list and you will see that the list has no bullets or numbers.

This is because the notice inherit list-style-type:none.

Attachments (1)

trac-32507.patch​ (1.8 KB ) - added by atharvaa2001 7 months ago.
Restores list-style and margin-left for ul, ol, and li elements nested inside admin notices (.notice, div.updated, div.error). Fixes the issue where lists inside notices displayed without bullets or numbers due to the global ul { list-style: none } reset.

Download all attachments as: .zip

Change History (3)

#1 @helen
11 years ago

I've always found this awkward, and am not sure why it was done this way or where it comes from. Could be an interesting history to trace. I'm also not sure this is something that could be changed in general without a lot of angst, and just adding it for notices is a little too specific and makes it even harder to understand the "why" of what we did later on. For the time being, you can use the ul-disc or ul-square classes for an easier workaround than writing your own CSS.

#2 @sciamannikoo
11 years ago

Nice workaround: thanks!

@atharvaa2001
7 months ago

Restores list-style and margin-left for ul, ol, and li elements nested inside admin notices (.notice, div.updated, div.error). Fixes the issue where lists inside notices displayed without bullets or numbers due to the global ul { list-style: none } reset.

Note: See TracTickets for help on using tickets.