Parcourir la source

Internal: Created list dropdown item style sheet (also in Lark) to ensure a consistent look of the component across the features (see ckeditor/ckeditor5-font#4).

Aleksander Nowodzinski il y a 7 ans
Parent
commit
2f21e221cd

+ 1 - 0
packages/ckeditor5-ui/src/dropdown/utils.js

@@ -17,6 +17,7 @@ import ListItemView from '../list/listitemview';
 import clickOutsideHandler from '../bindings/clickoutsidehandler';
 
 import '../../theme/components/dropdown/toolbardropdown.css';
+import '../../theme/components/dropdown/listdropdown.css';
 
 /**
  * A helper for creating dropdowns. It creates an instance of a {@link module:ui/dropdown/dropdownview~DropdownView dropdown},

+ 10 - 0
packages/ckeditor5-ui/theme/components/dropdown/listdropdown.css

@@ -0,0 +1,10 @@
+/*
+ * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
+ */
+
+/*
+ * Note: This file should contain the wireframe styles only. But since there are no such styles,
+ * it acts as a message to the builder telling that it should look for the corresponding styles
+ * **in the theme** when compiling the editor.
+ */