3 * Adds default classes to buttons for styling purposes.
7 $.widget('ui.dialog', $.ui.dialog, {
10 buttonPrimaryClass: 'button--primary',
13 const opts = this.options;
17 const il = opts.buttons.length;
18 for (index = 0; index < il; index++) {
19 if (opts.buttons[index].primary && opts.buttons[index].primary === true) {
21 delete opts.buttons[index].primary;
26 $buttons = this.uiButtonSet.children().addClass(opts.buttonClass);
27 if (typeof primaryIndex !== 'undefined') {
28 $buttons.eq(index).addClass(opts.buttonPrimaryClass);