Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,30 @@ export default {
}

:deep(.rich-text--wrapper) {
text-align: start;
// NcRichText is used with dir="auto", so internal text direction may vary
// But we want to keep the alignment consistent with the rest of the UI
text-align: inherit;

@include markdown;
}

// FIXME: Should it be in the upstream NcRichText component?
// NcRichText is used with dir="auto", so internal text direction may vary
// But we want to keep the alignment consistent with the rest of the UI
// So we need to override the direction for task lists using the current direction, not its own direction
&:dir(rtl) :deep(ul.contains-task-list) {
direction: rtl;
}

&:dir(ltr) :deep(ul.contains-task-list) {
direction: ltr;
}

// Overriding direction above breaks text direction
// Restoring it back
:deep(ul.contains-task-list) .checkbox-content__wrapper {
unicode-bidi: plaintext;
}
}
}

Expand Down