@@ -67,15 +67,15 @@ export default class LinkFormView extends View {
6767 *
6868 * @member {module:ui/button/buttonview~ButtonView}
6969 */
70- this . saveButtonView = this . _createButton ( t ( 'Save' ) , checkIcon ) ;
70+ this . saveButtonView = this . _createButton ( t ( 'Save' ) , checkIcon , 'ck-button-save' ) ;
7171 this . saveButtonView . type = 'submit' ;
7272
7373 /**
7474 * The Cancel button view.
7575 *
7676 * @member {module:ui/button/buttonview~ButtonView}
7777 */
78- this . cancelButtonView = this . _createButton ( t ( 'Cancel' ) , cancelIcon , 'cancel' ) ;
78+ this . cancelButtonView = this . _createButton ( t ( 'Cancel' ) , cancelIcon , 'ck-button-cancel' , ' cancel' ) ;
7979
8080 /**
8181 * A collection of views which can be focused in the form.
@@ -184,10 +184,11 @@ export default class LinkFormView extends View {
184184 * @private
185185 * @param {String } label The button label.
186186 * @param {String } icon The button's icon.
187+ * @param {String } className The additional button CSS class name.
187188 * @param {String } [eventName] An event name that the `ButtonView#execute` event will be delegated to.
188189 * @returns {module:ui/button/buttonview~ButtonView } The button view instance.
189190 */
190- _createButton ( label , icon , eventName ) {
191+ _createButton ( label , icon , className , eventName ) {
191192 const button = new ButtonView ( this . locale ) ;
192193
193194 button . set ( {
@@ -196,6 +197,12 @@ export default class LinkFormView extends View {
196197 tooltip : true
197198 } ) ;
198199
200+ button . extendTemplate ( {
201+ attributes : {
202+ class : className
203+ }
204+ } ) ;
205+
199206 if ( eventName ) {
200207 button . delegate ( 'execute' ) . to ( this , eventName ) ;
201208 }
0 commit comments