Sfoglia il codice sorgente

Made .ck-hidden class use !important to avoid specificity conflicts.

Aleksander Nowodzinski 8 anni fa
parent
commit
e30b46a025
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      packages/ckeditor5-ui/theme/helpers/_states.scss

+ 3 - 1
packages/ckeditor5-ui/theme/helpers/_states.scss

@@ -14,5 +14,7 @@
  * A class which hides an element in DOM.
  */
 .ck-hidden {
-	display: none;
+	// Override selector specificity. Otherwise, all elements with some display
+	// style defined will override this one, which is not a desired result.
+	display: none !important;
 }