Skip to content

Commit

Permalink
fix(code-snippet): hide copy button when not inline (#2873)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparker0i authored May 6, 2024
1 parent 9adcbdd commit 53cd3a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/code-snippet/code-snippet.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ export enum SnippetType {
</div>
<div *ngIf="hasLeft" class="cds--snippet__overflow-indicator--left"></div>
<div *ngIf="hasRight" class="cds--snippet__overflow-indicator--right"></div>
<ng-container *ngTemplateOutlet="buttonTemplate"></ng-container>
<ng-container *ngIf="!hideCopyButton;">
<ng-container *ngTemplateOutlet="buttonTemplate"></ng-container>
</ng-container>
<button
*ngIf="isExpandable"
class="cds--btn cds--btn--ghost cds--btn--sm cds--snippet-btn--expand"
Expand Down

0 comments on commit 53cd3a9

Please sign in to comment.