markdown: Fix Todo list item checkbox style. (#962)

<img width="394" alt="image"
src="https://github.com/user-attachments/assets/dee22c50-4110-46e3-9205-320809c2ef00"
/>
This commit is contained in:
Jason Lee 2025-06-17 10:50:57 +08:00 committed by GitHub
parent d2633faf82
commit 60bebaf51f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -433,7 +433,7 @@ impl Node {
))
})
.when_some(checked, |this, checked| {
// Checkmark
// Todo list checkbox
this.child(
div()
.flex()
@ -443,10 +443,11 @@ impl Node {
.items_center()
.justify_center()
.rounded(cx.theme().radius.half())
.bg(cx.theme().primary)
.border_1()
.border_color(cx.theme().primary)
.text_color(cx.theme().primary_foreground)
.when(checked, |this| {
this.child(
this.bg(cx.theme().primary).child(
Icon::new(IconName::Check)
.size_2()
.text_xs(),