WordPress.org

Make WordPress Core

Opened 7 months ago

Last modified 7 months ago

#50056 new defect (bug)

Unselectable registered block style in list block sub-item

Reported by: arpadkdweb Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.4
Component: Editor Keywords:
Focuses: ui, javascript, css, administration, template Cc:

Description

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.

Change History (1)

#1 @SergeyBiryukov
7 months ago

  • Component changed from General to Editor
Note: See TracTickets for help on using tickets.