Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 352d056

Browse files
authored
Merge pull request #371 from ckeditor/t/ckeditor5-theme-lark/135
Other: Removed the `.ck-editor-toolbar` and `.ck-editor-toolbar-container` classes (see ckeditor/ckeditor5-theme-lark#135).
2 parents a2d1b5e + 607defd commit 352d056

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/toolbar/contextual/contextualtoolbar.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export default class ContextualToolbar extends Plugin {
5353
this.toolbarView.extendTemplate( {
5454
attributes: {
5555
class: [
56-
'ck-editor-toolbar',
5756
'ck-toolbar_floating'
5857
]
5958
}
@@ -178,7 +177,7 @@ export default class ContextualToolbar extends Plugin {
178177
this._balloon.add( {
179178
view: this.toolbarView,
180179
position: this._getBalloonPositionData(),
181-
balloonClassName: 'ck-toolbar-container ck-editor-toolbar-container'
180+
balloonClassName: 'ck-toolbar-container'
182181
} );
183182
}
184183

tests/toolbar/contextual/contextualtoolbar.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ describe( 'ContextualToolbar', () => {
6666
expect( contextualToolbar ).to.instanceOf( Plugin );
6767
expect( contextualToolbar ).to.instanceOf( ContextualToolbar );
6868
expect( contextualToolbar.toolbarView ).to.instanceof( ToolbarView );
69-
expect( contextualToolbar.toolbarView.element.classList.contains( 'ck-editor-toolbar' ) ).to.be.true;
7069
expect( contextualToolbar.toolbarView.element.classList.contains( 'ck-toolbar_floating' ) ).to.be.true;
7170
} );
7271

@@ -183,7 +182,7 @@ describe( 'ContextualToolbar', () => {
183182

184183
sinon.assert.calledWith( balloonAddSpy, {
185184
view: contextualToolbar.toolbarView,
186-
balloonClassName: 'ck-toolbar-container ck-editor-toolbar-container',
185+
balloonClassName: 'ck-toolbar-container',
187186
position: {
188187
target: sinon.match.func,
189188
positions: [
@@ -226,7 +225,7 @@ describe( 'ContextualToolbar', () => {
226225

227226
sinon.assert.calledWithExactly( balloonAddSpy, {
228227
view: contextualToolbar.toolbarView,
229-
balloonClassName: 'ck-toolbar-container ck-editor-toolbar-container',
228+
balloonClassName: 'ck-toolbar-container',
230229
position: {
231230
target: sinon.match.func,
232231
positions: [

0 commit comments

Comments
 (0)