Skip to content

Commit

Permalink
Bullet color to follow text color
Browse files Browse the repository at this point in the history
  • Loading branch information
ivailop7 committed Jan 7, 2025
1 parent 7961130 commit b44ee80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/lexical-list/src/LexicalListItemNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export class ListItemNode extends ElementNode {
// @ts-expect-error - this is always HTMLListItemElement
dom.value = this.__value;
$setListItemThemeClassNames(dom, config.theme, this);

if (dom.childNodes.length > 0) {
dom.style.color = dom.lastChild.style.color;

Check failure on line 99 in packages/lexical-list/src/LexicalListItemNode.ts

View workflow job for this annotation

GitHub Actions / core-tests / integrity (20.11.0)

'dom.lastChild' is possibly 'null'.

Check failure on line 99 in packages/lexical-list/src/LexicalListItemNode.ts

View workflow job for this annotation

GitHub Actions / core-tests / integrity (20.11.0)

Property 'style' does not exist on type 'ChildNode'.
}
return false;
}

Expand Down

0 comments on commit b44ee80

Please sign in to comment.