Skip to content

Commit

Permalink
Merge pull request #13221 from ckeditor/ck/13206-fix-unorder-list-style
Browse files Browse the repository at this point in the history
Fix (list): Fix unordered list style. Closes: #13206.
  • Loading branch information
arkflpc authored Jan 17, 2023
2 parents d091c4e + 97c7cc7 commit c37e3cb
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ import ListWalker, {
iterateSiblingListBlocks,
ListBlocksIterable
} from './utils/listwalker';

import '../../theme/documentlist.css';
import '../../theme/list.css';

/**
* A list of base list model attributes.
Expand Down
2 changes: 2 additions & 0 deletions packages/ckeditor5-list/src/list/listediting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ import {
viewToModelPosition
} from './converters';

import '../../theme/list.css';

/**
* The engine of the list feature. It handles creating, editing and removing lists and list items.
*
Expand Down
40 changes: 40 additions & 0 deletions packages/ckeditor5-list/theme/list.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

.ck-content ol {
list-style-type: decimal;

& ol {
list-style-type: lower-latin;

& ol {
list-style-type: lower-roman;

& ol {
list-style-type: upper-latin;

& ol {
list-style-type: upper-roman;
}
}
}
}
}

.ck-content ul {
list-style-type: disc;

& ul {
list-style-type: circle;

& ul {
list-style-type: square;

& ul {
list-style-type: square;
}
}
}
}
36 changes: 0 additions & 36 deletions packages/ckeditor5-list/theme/liststyles.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,3 @@
.ck.ck-list-styles-list {
display: grid;
}

.ck-content ol {
list-style-type: decimal;

& ol {
list-style-type: lower-latin;

& ol {
list-style-type: lower-roman;

& ol {
list-style-type: upper-latin;

& ol {
list-style-type: upper-roman;
}
}
}
}
}

.ck-content ul {
list-style-type: circle;

& ul {
list-style-type: disc;

& ul {
list-style-type: square;

& ul {
list-style-type: square;
}
}
}
}

0 comments on commit c37e3cb

Please sign in to comment.