From f15a364082aa46d8438650ef84e689e8f8319469 Mon Sep 17 00:00:00 2001 From: splincode Date: Thu, 3 Nov 2022 14:23:14 +0500 Subject: [PATCH] feat(addon-editor): support nested counters in ordered list --- .../components/editor-socket/editor-socket.component.less | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/addon-editor/components/editor-socket/editor-socket.component.less b/projects/addon-editor/components/editor-socket/editor-socket.component.less index fa3df25f46dd..8d2e86ce2625 100644 --- a/projects/addon-editor/components/editor-socket/editor-socket.component.less +++ b/projects/addon-editor/components/editor-socket/editor-socket.component.less @@ -115,14 +115,14 @@ } .tui-editor-socket ol { - counter-reset: counter; + counter-reset: item; } .tui-editor-socket ol > li:before { - content: counter(counter) '.'; + content: counters(item, '.') '.'; width: 1.5rem; margin: 0 0.75rem 0 -1.5rem; - counter-increment: counter; + counter-increment: item; color: var(--tui-base-05); vertical-align: top; }