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

Commit

Permalink
Renamed text alternative form button classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Mar 15, 2018
1 parent a8ded5e commit 4e78489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ui/linkformview.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ export default class LinkFormView extends View {
*
* @member {module:ui/button/buttonview~ButtonView}
*/
this.saveButtonView = this._createButton( t( 'Save' ), checkIcon, 'ck-button_save' );
this.saveButtonView = this._createButton( t( 'Save' ), checkIcon, 'ck-button-save' );
this.saveButtonView.type = 'submit';

/**
* The Cancel button view.
*
* @member {module:ui/button/buttonview~ButtonView}
*/
this.cancelButtonView = this._createButton( t( 'Cancel' ), cancelIcon, 'ck-button_cancel', 'cancel' );
this.cancelButtonView = this._createButton( t( 'Cancel' ), cancelIcon, 'ck-button-cancel', 'cancel' );

/**
* A collection of views which can be focused in the form.
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/linkformview.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ describe( 'LinkFormView', () => {
expect( view.saveButtonView ).to.be.instanceOf( View );
expect( view.cancelButtonView ).to.be.instanceOf( View );

expect( view.saveButtonView.element.classList.contains( 'ck-button_save' ) ).to.be.true;
expect( view.cancelButtonView.element.classList.contains( 'ck-button_cancel' ) ).to.be.true;
expect( view.saveButtonView.element.classList.contains( 'ck-button-save' ) ).to.be.true;
expect( view.cancelButtonView.element.classList.contains( 'ck-button-cancel' ) ).to.be.true;

expect( view._unboundChildren.get( 0 ) ).to.equal( view.urlInputView );
expect( view._unboundChildren.get( 1 ) ).to.equal( view.saveButtonView );
Expand Down

0 comments on commit 4e78489

Please sign in to comment.