Skip to content

Commit 27715ac

Browse files
committed
Fix linting
1 parent b05c848 commit 27715ac

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

packages/controls/css/widgets-base.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,6 @@
981981
flex-direction: column;
982982
}
983983

984-
985984
/* <DEPRECATED> */
986985
.widget-radio-box-horizontal, /* </DEPRECATED> */
987986
.jupyter-widget-radio-box-horizontal {
@@ -998,7 +997,7 @@
998997

999998
.widget-radio-box-horizontal label,
1000999
.jupyter-widget-radio-box-horizontal label {
1001-
margin: 0 calc(var(--jp-widgets-input-padding) * 2) 0 0;
1000+
margin: 0 calc(var(--jp-widgets-input-padding) * 2) 0 0;
10021001
}
10031002

10041003
/* <DEPRECATED> */

packages/controls/src/widget_selection.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export class RadioButtonsModel extends SelectionModel {
288288
tooltips: [],
289289
icons: [],
290290
button_style: '',
291-
orientation:'vertical',
291+
orientation: 'vertical',
292292
};
293293
}
294294
}
@@ -306,24 +306,24 @@ export class RadioButtonsView extends DescriptionView {
306306
this.el.appendChild(this.container);
307307
this.container.classList.add('widget-radio-box');
308308

309-
this.update();
309+
this.update();
310310
}
311311

312312
/**
313313
* Update the contents of this view
314314
*
315-
* Called when the model is changed. The model may have been
316-
* changed by another view or by a state update from the back-end.
315+
* Called when the model is changed. The model may have been
316+
* changed by another view or by a state update from the back-end.
317317
*/
318-
update(options?: any): void {
319-
if (this.model.get('orientation') === 'vertical') {
320-
this.container.classList.remove('widget-radio-box-horizontal');
321-
this.container.classList.add('widget-radio-box-vertical');
322-
} else {
323-
this.container.classList.remove('widget-radio-box-vertical');
324-
this.container.classList.add('widget-radio-box-horizontal');
325-
}
326-
const items: string[] = this.model.get('_options_labels');
318+
update(options?: any): void {
319+
if (this.model.get('orientation') === 'vertical') {
320+
this.container.classList.remove('widget-radio-box-horizontal');
321+
this.container.classList.add('widget-radio-box-vertical');
322+
} else {
323+
this.container.classList.remove('widget-radio-box-vertical');
324+
this.container.classList.add('widget-radio-box-horizontal');
325+
}
326+
const items: string[] = this.model.get('_options_labels');
327327
const radios = Array.from(
328328
this.container.querySelectorAll<HTMLInputElement>('input[type="radio"]')
329329
).map((x) => x.value);

0 commit comments

Comments
 (0)