Skip to content

Commit 11bfbe5

Browse files
authored
fix: checked colored todo list item (#6113)
1 parent fc52936 commit 11bfbe5

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

packages/editor/src/styles/editor.css

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,26 @@ ul[data-type="taskList"] li > label input[type="checkbox"] {
179179
}
180180
}
181181

182-
ul[data-type="taskList"] li > div > p {
183-
margin-top: 10px;
182+
ul[data-type="taskList"] li > div {
183+
& > p {
184+
margin-top: 10px;
185+
transition: color 0.2s ease;
186+
}
187+
188+
[data-text-color] {
189+
transition: opacity 0.2s ease;
190+
}
184191
}
185192

186-
ul[data-type="taskList"] li[data-checked="true"] > div > p {
187-
color: rgb(var(--color-text-400));
188-
transition: color 0.2s ease;
193+
ul[data-type="taskList"] li[data-checked="true"] {
194+
& > div > p {
195+
color: rgb(var(--color-text-400));
196+
}
197+
198+
[data-text-color] {
199+
opacity: 0.6;
200+
transition: opacity 0.2s ease;
201+
}
189202
}
190203
/* end to-do list */
191204

0 commit comments

Comments
 (0)