Skip to content

Commit 5e842d7

Browse files
committed
Rename snippetExpanded -> expanded
1 parent 1ba05f4 commit 5e842d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/code-snippet/code-snippet.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export enum SnippetType {
5151
class="bx--btn bx--btn--ghost bx--btn--sm bx--snippet-btn--expand"
5252
(click)="toggleSnippetExpansion()"
5353
type="button">
54-
<span class="bx--snippet-btn--text">{{snippetExpanded ? translations.SHOW_LESS : translations.SHOW_MORE}}</span>
54+
<span class="bx--snippet-btn--text">{{expanded ? translations.SHOW_LESS : translations.SHOW_MORE}}</span>
5555
<svg
5656
class="bx--icon-chevron--down"
5757
width="12" height="7"
@@ -110,7 +110,7 @@ export class CodeSnippet {
110110
*/
111111
@Input() feedbackTimeout = 2000;
112112

113-
@HostBinding("class.bx--snippet--expand") @Input() snippetExpanded = false;
113+
@HostBinding("class.bx--snippet--expand") @Input() expanded = false;
114114

115115
@HostBinding("class.bx--snippet") snippetClass = true;
116116
@HostBinding("class.bx--snippet--single") get snippetSingleClass() {
@@ -153,7 +153,7 @@ export class CodeSnippet {
153153
}
154154

155155
toggleSnippetExpansion() {
156-
this.snippetExpanded = !this.snippetExpanded;
156+
this.expanded = !this.expanded;
157157
}
158158

159159
/**

0 commit comments

Comments
 (0)