Browse Source

Merge pull request #271 from ckeditor/i/6229

Fix: Background color of a table cell should blend with the background of an entire table. Closes ckeditor/ckeditor5#6229.
Aleksander Nowodzinski 5 years ago
parent
commit
f927a65051

+ 3 - 2
packages/ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css

@@ -4,13 +4,14 @@
  */
 
 :root {
-	--ck-color-table-focused-cell-background: hsl(208, 90%, 98%);
+	--ck-color-table-focused-cell-background: hsla(208, 90%, 80%, .3);
 }
 
 .ck-widget.table {
 	& td,
 	& th {
-		&.ck-editor__nested-editable.ck-editor__nested-editable_focused {
+		&.ck-editor__nested-editable.ck-editor__nested-editable_focused,
+		&.ck-editor__nested-editable:focus {
 			/* A very slight background to highlight the focused cell */
 			background: var(--ck-color-table-focused-cell-background);