make checkbox vertically aligned and remove the x scroll for modaldialog (#3005)

This commit is contained in:
Alan Ren
2018-10-25 14:26:44 -07:00
committed by GitHub
parent 0704e5ee67
commit 92d9d04a78
2 changed files with 4 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ export class Checkbox extends Widget {
this._el = document.createElement('input');
this._el.type = 'checkbox';
this._el.style.verticalAlign = 'middle';
if (opts.ariaLabel) {
this._el.setAttribute('aria-label', opts.ariaLabel);
@@ -44,6 +45,7 @@ export class Checkbox extends Widget {
});
this._label = document.createElement('span');
this._label.style.verticalAlign = 'middle';
this.label = opts.label;
this.enabled = opts.enabled || true;