Skip to content

Commit

Permalink
Merge pull request #2693 from martinRenou/tab_spaces
Browse files Browse the repository at this point in the history
Tabs -> spaces
  • Loading branch information
SylvainCorlay authored Jan 8, 2020
2 parents 9e53cea + 9f79cec commit 1467be5
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions ipywidgets/widgets/widget_bool.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Checkbox(_Bool):
value : {True,False}
value of the checkbox: True-checked, False-unchecked
description : str
description displayed next to the checkbox
description displayed next to the checkbox
indent : {True,False}
indent the control to align with other controls with a description. The style.description_width attribute controls this width for consistence with other controls.
"""
Expand All @@ -53,7 +53,7 @@ class ToggleButton(_Bool):
value : {True,False}
value of the toggle button: True-pressed, False-unpressed
description : str
description displayed next to the button
description displayed next to the button
tooltip: str
tooltip caption of the toggle button
icon: str
Expand Down
6 changes: 3 additions & 3 deletions packages/base/src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,10 @@ class WidgetView extends NativeView<WidgetModel> {
*/
handle_message(content: any) {
if (content.do == 'focus') {
this.el.focus();
this.el.focus();
} else if (content.do == 'blur') {
this.el.blur();
}
this.el.blur();
}
};

/**
Expand Down
12 changes: 6 additions & 6 deletions packages/controls/css/widgets-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@
flex-shrink: 1;
outline: none !important;
}

.widget-text input[type="text"], .widget-text input[type="password"], .widget-textarea textarea {
padding: var(--jp-widgets-input-padding) calc( var(--jp-widgets-input-padding) * 2);
}
Expand Down Expand Up @@ -686,12 +686,12 @@
font-size: var(--jp-widgets-font-size);
vertical-align: top;
padding-left: calc( var(--jp-widgets-input-padding) * 2);
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-repeat: no-repeat;
background-size: 20px;
background-position: right center;
background-size: 20px;
background-position: right center;
background-image: var(--jp-widgets-dropdown-arrow);
}
.widget-dropdown > select:focus {
Expand Down
30 changes: 15 additions & 15 deletions packages/controls/src/widget_string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ class HTMLView extends DescriptionView {
*/
handle_message(content: any) {
if (content.do == 'focus') {
this.content.focus();
this.content.focus();
} else if (content.do == 'blur') {
this.content.blur();
}
this.content.blur();
}
};

content: HTMLDivElement;
Expand Down Expand Up @@ -126,10 +126,10 @@ class HTMLMathView extends DescriptionView {
*/
handle_message(content: any) {
if (content.do == 'focus') {
this.content.focus();
this.content.focus();
} else if (content.do == 'blur') {
this.content.blur();
}
this.content.blur();
}
};

content: HTMLDivElement;
Expand Down Expand Up @@ -298,10 +298,10 @@ class TextareaView extends DescriptionView {
*/
handle_message(content: any) {
if (content.do == 'focus') {
this.textbox.focus();
this.textbox.focus();
} else if (content.do == 'blur') {
this.textbox.blur();
}
this.textbox.blur();
}
};

textbox: HTMLTextAreaElement;
Expand Down Expand Up @@ -448,10 +448,10 @@ class TextView extends DescriptionView {
*/
handle_message(content: any) {
if (content.do == 'focus') {
this.textbox.focus();
this.textbox.focus();
} else if (content.do == 'blur') {
this.textbox.blur();
}
this.textbox.blur();
}
};

protected readonly inputType: string = 'text';
Expand Down Expand Up @@ -567,10 +567,10 @@ class ComboboxView extends TextView {
*/
handle_message(content: any) {
if (content.do == 'focus') {
this.textbox.focus();
this.textbox.focus();
} else if (content.do == 'blur') {
this.textbox.blur();
}
this.textbox.blur();
}
};

highlightValidState(valid: boolean): void {
Expand Down

0 comments on commit 1467be5

Please sign in to comment.