Skip to content

Commit

Permalink
make sure the mouse pointer over the icon is really a pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Oct 31, 2018
1 parent 7a4d51b commit da19f86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/controls/src/widget_bool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ class ToggleButtonView extends DOMWidgetView {
let icon_placeholder = document.createElement('div');
this.el.appendChild(icon_placeholder);
this.iconView = <IconView> await this.create_child_view(icon)
this.iconView.el.classList.add('widget-button-icon')
if (description.length === 0) {
this.iconView.el.classList.add('center');
}
Expand Down
1 change: 1 addition & 0 deletions packages/controls/src/widget_button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class ButtonView extends DOMWidgetView {
let icon_placeholder = document.createElement('div');
this.el.appendChild(icon_placeholder);
this.iconView = <IconView> await this.create_child_view(icon)
this.iconView.el.classList.add('widget-button-icon')
if (description.length === 0 && this.iconView) {
this.iconView.el.classList.add('center');
}
Expand Down

0 comments on commit da19f86

Please sign in to comment.