Commit d285264
fix(editor): don't strike through nested checklist items of a checked parent (#3715)
Unchecked checklist item nested under checked parent rendered greyed out
and struck through, so it looked checked.
Cause: `li[data-checked='true']` styled whole list item, including
nested task list inside item's content div. `text-decoration` propagates
to descendants and cannot be reset by child. Rule now scoped to item's
own content.
Fixes #3712
## How to verify
1. Create a task and open it.
2. Edit the description, add a checklist item "Parent item", then press
Enter and Tab to nest a second item "Child item" underneath it.
3. Check the checkbox of "Parent item" only, and save.
4. **Expected:** "Parent item" is greyed out and struck through. "Child
item" keeps normal text colour with no strikethrough, and its checkbox
stays unchecked.
**Before this PR:** "Child item" was greyed out and struck through too,
making it look checked.
---------
Co-authored-by: kolaente <k@knt.li>
Co-authored-by: kolaente <hello@kolaente.de>1 parent 3502c0a commit d285264
2 files changed
Lines changed: 67 additions & 1 deletion
File tree
- frontend
- src/components/input/editor
- tests/e2e/task
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | | - | |
| 1041 | + | |
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
| |||
Lines changed: 66 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
0 commit comments