Bladeren bron

Implemented the info text class for .ck-labeled-input.

Aleksander Nowodzinski 7 jaren geleden
bovenliggende
commit
464de31120

+ 8 - 2
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledinput/labeledinput.css

@@ -3,8 +3,14 @@
  * For licensing, see LICENSE.md.
  */
 
-.ck.ck-labeled-input .ck-labeled-input__error {
+.ck.ck-labeled-input .ck-labeled-input__info {
 	font-size: var(--ck-font-size-small);
-	color: var(--ck-color-base-error);
 	margin-top: var(--ck-spacing-small);
+
+	/* Let the info wrap to the next line to avoid stretching the layout horizontally. */
+	white-space: normal;
+}
+
+.ck.ck-labeled-input .ck-labeled-input__info_error {
+	color: var(--ck-color-base-error);
 }