Fix tabbing through Notebook cells (#9758)

* Fix tabbing through Notebook cells

* Fix toggle tab command and re-order DOM
This commit is contained in:
Charles Gagnon
2020-03-27 13:23:25 -07:00
committed by GitHub
parent a9240f38f7
commit 068e1488cf
6 changed files with 30 additions and 28 deletions

View File

@@ -21,12 +21,7 @@
</button>
</div>
<div *ngFor="let cell of cells">
<div class="notebook-cell"
(click)="selectCell(cell, $event)"
(focus)="selectCell(cell, $event)"
[class.active]="cell.active"
[attr.aria-label]="cell.ariaLabel"
tabindex="0">
<div class="notebook-cell" (click)="selectCell(cell, $event)" [class.active]="cell.active">
<code-cell-component *ngIf="cell.cellType === 'code'" [cellModel]="cell" [model]="model" [activeCellId]="activeCellId">
</code-cell-component>
<text-cell-component *ngIf="cell.cellType === 'markdown'" [cellModel]="cell" [model]="model" [activeCellId]="activeCellId">