Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity: what's the difference between this toolbar and the BalloonToolbar
(in terms of styling)? Why can't we have the same styles for both? (I'm talking especially about .ck.ck-balloon-panel-block-toolbar
)
I think the reason was missing |
--ck-block-toolbar-button-size: var(--ck-font-size-normal); | ||
} | ||
|
||
.ck.ck-block-toolbar-button { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not .ck-block-button
? IIRC it's BlockButtonView
https://github.com/ckeditor/ckeditor5-ui/pull/392/files#diff-25f0cf1953c3fa884ca284a6c91b1f22R24.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, where does the BlockButtonView
live in DOM? Which element is its parent? (it could have an impact on the class name)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Button is directly in a body collection. cc @dkonopka.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then it makes sense, I think.
Suggested merge commit message (convention)
Feature: Added BlockToolbar styles. Closes https://github.com/ckeditor/ckeditor5-ui/issues/391.
Part of ckeditor/ckeditor5-ui#392.