Преглед на файлове

Set the background color as a variable.

The change is needed to keep the same value for the element when is focused.
We use this to fix: https://github.com/ckeditor/ckeditor5/issues/6229
panr преди 5 години
родител
ревизия
ae93f5969a
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      packages/ckeditor5-table/theme/table.css

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

@@ -3,6 +3,10 @@
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
+ :root {
+	 --ck-color-table-focused-th-background: hsla(0, 0%, 0%, 10%);
+ }
+
 .ck-content .table {
 	/* Give the table widget some air and center it horizontally */
 	margin: 1em auto;
@@ -31,7 +35,7 @@
 
 		& th {
 			font-weight: bold;
-			background: hsla(0, 0%, 0%, 10%);
+			background: var(--ck-color-table-focused-th-background);
 		}
 	}
 }