Skip to content

Commit

Permalink
Fix notebook context selection (#14179)
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew authored Sep 17, 2024
1 parent ea249af commit e1e6345
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/notebook/src/browser/notebook-editor-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export class NotebookEditorWidget extends ReactWidget implements Navigatable, Sa

protected render(): ReactNode {
if (this._model) {
return <div className='theia-notebook-main-container'>
return <div className='theia-notebook-main-container' tabIndex={-1}>
<div className='theia-notebook-overlay'>
<NotebookFindWidget
ref={this._findWidgetRef}
Expand Down
4 changes: 4 additions & 0 deletions packages/notebook/src/browser/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@
overflow: hidden;
}

.theia-notebook-main-container:focus {
outline: none;
}

.theia-notebook-main-container .theia-notebook-main-loading-indicator {
/* `progress-animation` is defined in `packages/core/src/browser/style/progress-bar.css` */
animation: progress-animation 1.8s 0s infinite cubic-bezier(0.645, 0.045, 0.355, 1);
Expand Down

0 comments on commit e1e6345

Please sign in to comment.