Преглед изворни кода

Merge pull request #296 from ckeditor/i/6314

Fix: Table border should be present in content styles (should use `.ck-content`). Closes ckeditor/ckeditor5#6314.
Piotrek Koszuliński пре 5 година
родитељ
комит
9dca7b5e7f
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      packages/ckeditor5-table/theme/table.css

+ 5 - 1
packages/ckeditor5-table/theme/table.css

@@ -26,7 +26,11 @@
 		& th {
 			min-width: 2em;
 			padding: .4em;
-			border-color: hsl(0, 0%, 75%);
+
+			/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it's not necessary here.
+			However, the border is a content style, so it should use .ck-content (so it works outside the editor).
+			Hence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */
+			border: 1px solid hsl(0, 0%, 75%);
 		}
 
 		& th {