[wp-trac] [WordPress Trac] #57920: Multiple Default Themes: Ordered List Type Overwritten
WordPress Trac
noreply at wordpress.org
Tue Mar 14 15:22:19 UTC 2023
#57920: Multiple Default Themes: Ordered List Type Overwritten
---------------------------+-----------------------------
Reporter: zoonini | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
In several default themes, the ordered list type is always displayed as
numerical (aka decimal), even when you set it to another type, such as
alphabetical.
**To replicate:**
1. Activate Twenty Fifteen
2. Add a List block OR a Classic block
3. Switch the block to code view and add `type="a"` as an attribute on the
`ol` element, so the opening tag looks like this: `<ol type="a">`
4. Save the page and view on the front end
**Result:**
It displays as a numerical list, like:
1. item
2. item
3. item
This seems to be coming from this CSS in each of the affected themes:
{{{
ol {
list-style: decimal;
}
}}}
**Expected:**
It should display as whatever list type was set. For example, if
`type="a"` was set on the block, the list should display alphabetical,
like:
a. item
b. item
c. item
**Other affected themes**
I able to replicate this in the following default themes:
- Twenty Ten
- Twenty Eleven
- Twenty Twelve
- Twenty Fourteen
- Twenty Fifteen
- Twenty Sixteen
- Twenty Seventeen
- Twenty Nineteen
- Twenty Twenty
- Twenty Twenty-One
The following default themes did **not** have the issue:
- Twenty Thirteen
- Twenty Twenty-Two
- Twenty Twenty-Three
----
Reported in this support-forum thread:
https://wordpress.org/support/topic/ordered-list-type-attribute-not-
displayed-properly/
I provided two possible workarounds to the user there, one involving
custom CSS, and the other involving adding inline CSS on the `ol` element.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57920>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list