[wp-trac] [WordPress Trac] #50056: Unselectable registered block style in list block sub-item

WordPress Trac noreply at wordpress.org
Sat May 2 16:25:50 UTC 2020


#50056: Unselectable registered block style in list block sub-item
-------------------------------------------------+-------------------------
 Reporter:  arpadkdweb                           |      Owner:  (none)
     Type:  defect (bug)                         |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
                                                 |  Review
Component:  General                              |    Version:  5.4
 Severity:  normal                               |   Keywords:
  Focuses:  ui, javascript, css,                 |
  administration, template                       |
-------------------------------------------------+-------------------------
 I've registered a blockStyle for the core/list block for changing the
 list-item-style to lower-roman and another blockStyle for changing it to
 lower-latin. I can use the block style properly if there is only one level
 to the list, but if I want to select a different style for a sub `<ul>`
 the style is changed for the entire main list.

 I can only make it work if I actually edit the HTML code and add the class
 manually to the inner ul, which defeats the purpose of having the custom
 style.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50056>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list