[wp-trac] [WordPress Trac] #44777: Twenty Sixteen and Twenty Seventeen ignore/override ordered list types

WordPress Trac noreply at wordpress.org
Tue Mar 17 01:06:03 UTC 2020


#44777: Twenty Sixteen and Twenty Seventeen ignore/override ordered list types
-------------------------------------------+------------------------------
 Reporter:  Greg Raven                     |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Bundled Theme                  |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  reporter-feedback 2nd-opinion  |     Focuses:
-------------------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:  reporter-feedback => reporter-feedback 2nd-opinion


Comment:

 To customize the list styling, it is usually better to use CSS than the
 `type` attribute:
 `<ol style="list-style-type: lower-alpha;">`

 [https://wordpress.org/plugins/tinymce-advanced/ TinyMCE Advanced] is one
 plugin that can help add those styles to each new list, using the Visual
 editor.

 Though there is no editor support in WordPress core to set the `type`
 attribute, it may be worth adding theme support for when lists have that
 attribute. [https://developer.mozilla.org/en-
 US/docs/Web/HTML/Element/ol#Attributes MDN] mentions the case of assigning
 the type to lists in a legal or technical document, where the type conveys
 a specific meaning for reference.

 Twenty Sixteen and Twenty Seventeen both set the style for ordered lists
 to decimal, even when they are nested (Twenty Twenty is one theme that
 styles nested ordered lists with letters and/or Roman numerals). If that
 rule is simply removed, then the styling would use the browser default,
 which is typically decimal anyway for English browsers. And default
 styling would honor the `type`. Another, probably less advisable, option
 to support it would be using `ol:not([type])`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44777#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list