Ver código fonte

Merge pull request #308 from ckeditor/i/6638

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.
Aleksander Nowodzinski 5 anos atrás
pai
commit
fc1c51ccca
1 arquivos alterados com 10 adições e 0 exclusões
  1. 10 0
      packages/ckeditor5-table/theme/table.css

+ 10 - 0
packages/ckeditor5-table/theme/table.css

@@ -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;
+}