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 9b8b923 commit cf9193c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/imagetextalternative/ui/textalternativeformview.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ export default class TextAlternativeFormView extends View {
*
* @member {module:ui/button/buttonview~ButtonView} #saveButtonView
*/
this.saveButtonView = this._createButton( t( 'Save' ), checkIcon, 'ck-button_save' );
this.saveButtonView = this._createButton( t( 'Save' ), checkIcon, 'ck-button-save' );
this.saveButtonView.type = 'submit';

/**
* A button used to cancel the form.
*
* @member {module:ui/button/buttonview~ButtonView} #cancelButtonView
*/
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/imagetextalternative/ui/textalternativeformview.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ describe( 'TextAlternativeFormView', () => {

view.render();

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;
} );

it( 'should create #_focusCycler instance', () => {
Expand Down

0 comments on commit cf9193c

Please sign in to comment.