Explorar o código

Merge pull request #550 from ckeditor/i/6507

Internal: Cleaned up the FormHeaderView docs and code. Closes ckeditor/ckeditor5#6507.
Aleksander Nowodzinski %!s(int64=5) %!d(string=hai) anos
pai
achega
948ff4d962

+ 1 - 1
packages/ckeditor5-ui/src/formheader/formheaderview.js

@@ -32,7 +32,7 @@ export default class FormHeaderView extends View {
 	 *
 	 * @param {module:utils/locale~Locale} locale The locale instance.
 	 * @param {Object} options
-	 * @param {String} [options.label] A label.
+	 * @param {String} options.label A label.
 	 * @param {String} [options.class] An additional class.
 	 */
 	constructor( locale, options = {} ) {

+ 1 - 13
packages/ckeditor5-ui/theme/components/formheader/formheader.css

@@ -3,22 +3,10 @@
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
-:root {
-	--ck-table-form-header-height: 38px;
-}
-
 .ck.ck-form__header {
-  display: flex;
+	display: flex;
 	flex-direction: row;
 	flex-wrap: nowrap;
 	align-items: center;
 	justify-content: space-between;
-	padding: var(--ck-spacing-small) var(--ck-spacing-large);
-	height: var(--ck-table-form-header-height);
-	line-height: var(--ck-table-form-header-height);
-	border-bottom: 1px solid var(--ck-color-base-border);
-
-	& .ck-form__header__label {
-		font-weight: bold;
-	}
 }