Skip to content

Commit

Permalink
feat(docs): revert back code block toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
NikGurev committed Jul 19, 2024
1 parent 83cd326 commit c75fc0e
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
<div class="docs-live-example__footer">
<span kbq-link
pseudo
[style.visibility]="isSourceShown ? 'hidden' : null"
(click)="toggleSourceView()"
(keydown.enter)="toggleSourceView()">
Показать пример кода
(keydown.enter)="toggleSourceView()"
[ngSwitch]="isSourceShown">

{{ isSourceShown ? 'Скрыть пример кода' : 'Показать пример кода' }}
</span>

<docs-stackblitz-button [exampleId]="exampleId"></docs-stackblitz-button>
Expand All @@ -24,7 +25,7 @@
*ngIf="isSourceShown"
[lineNumbers]="true"
[filled]="true"
[codeFiles]="this.files">
[codeFiles]="files">
</kbq-code-block>
</ng-container>

Expand Down

0 comments on commit c75fc0e

Please sign in to comment.