Browse Source

Other: Remove ButtonGroupView and use ToolbarView in button dropdown.

Maciej Gołaszewski 8 years ago
parent
commit
9863288071

+ 9 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css

@@ -35,6 +35,15 @@
 			text-overflow: ellipsis;
 			text-overflow: ellipsis;
 		}
 		}
 	}
 	}
+
+	&.ck-buttondropdown .ck-toolbar {
+		border: 0;
+		padding: 0;
+
+		& .ck-button {
+			border-radius: 0;
+		}
+	}
 }
 }
 
 
 .ck-dropdown__panel {
 .ck-dropdown__panel {

+ 7 - 4
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css

@@ -41,11 +41,14 @@
 		}
 		}
 	}
 	}
 
 
-	& .ck-button.ck-dropdown__button:not(.ck-button-dropdown) {
-		border-width: 1px;
+	/* Exclude button dropdown button */
+	& :not(.ck-buttondropdown) {
+		& .ck-button.ck-dropdown__button {
+			border-width: 1px;
 
 
-		&:not(:hover):not(:focus):not(.ck-on) {
-			background: var(--ck-color-editor-dropdown-background);
+			&:not(:hover):not(:focus):not(.ck-on) {
+				background: var(--ck-color-editor-dropdown-background);
+			}
 		}
 		}
 	}
 	}