align the radio button with text (#3241)

This commit is contained in:
Alan Ren
2018-11-15 14:01:32 -08:00
committed by GitHub
parent ff465a59b6
commit 8e049f4af5

View File

@@ -28,8 +28,11 @@ export class RadioButton extends Widget {
super();
this.inputElement = document.createElement('input');
this.inputElement.type = 'radio';
this.inputElement.style.verticalAlign = 'middle';
this.inputElement.style.margin = '3px';
this._label = document.createElement('span');
this._label.style.verticalAlign = 'middle';
this.label = opts.label;
this.enabled = opts.enabled || true;