Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #308 from ckeditor/i/6638
Browse files Browse the repository at this point in the history
Fix: Table feature should specify header text alignment styles for different language directions in the content styles sheet. Closes ckeditor/ckeditor5#6638.

Until now, the text alignment was inherited from `EditorUI` styles but they are unavailable outside the editor when the content lives in a `.ck-content` container.
  • Loading branch information
oleq authored Apr 22, 2020
2 parents e2d3ef2 + 164782b commit 0e25d38
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions theme/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,13 @@
}
}
}

/* Text alignment of the table header should match the editor settings and override the native browser styling,
when content is available outside the ediitor. See https://github.com/ckeditor/ckeditor5/issues/6638 */
.ck-content[dir="rtl"] .table th {
text-align: right;
}

.ck-content[dir="ltr"] .table th {
text-align: left;
}

0 comments on commit 0e25d38

Please sign in to comment.