Opened 5 years ago
Closed 4 years ago
#50056 closed defect (bug) (reported-upstream)
Unselectable registered block style in list block sub-item
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 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 (3)
Note: See
TracTickets for help on using
tickets.
@arpadkdweb Thanks for reporting this, and sorry there hasn't been a response in a while. Block Editor issues are generally handled in the github repository for Gutenberg:
https://github.com/WordPress/gutenberg/issues
The block styles only apply to a whole block, and can't be applied to a sub-block. I realise this makes what you're trying to achieve difficult.
The solution would be what's described in this issue - https://github.com/WordPress/gutenberg/issues/6394 - the ability to nest list blocks would allow you to choose a different style for any nested lists.
Given there's a proposed solution, I'll close this ticket.