File tree 1 file changed +8
-19
lines changed
packages/components/src/components/hds/code-block
1 file changed +8
-19
lines changed Original file line number Diff line number Diff line change 32
32
</div >
33
33
{{ #if this.showFooter }}
34
34
<div class =" hds-code-block__overlay-footer" >
35
- {{ #if this._isExpanded }}
36
- <Hds::Button
37
- class =" hds-code-block__height-toggle-button"
38
- @text =" Show less"
39
- @color =" secondary"
40
- @icon =" chevron-up"
41
- @size =" small"
42
- {{ on " click" this.toggleExpanded }}
43
- />
44
- {{ else }}
45
- <Hds::Button
46
- class =" hds-code-block__height-toggle-button"
47
- @text =" Show more"
48
- @color =" secondary"
49
- @icon =" chevron-down"
50
- @size =" small"
51
- {{ on " click" this.toggleExpanded }}
52
- />
53
- {{ /if }}
35
+ <Hds::Button
36
+ class =" hds-code-block__height-toggle-button"
37
+ @text ={{ if this._isExpanded " Show less" " Show more" }}
38
+ @color =" secondary"
39
+ @icon ={{ if this._isExpanded " chevron-up" " chevron-down" }}
40
+ @size =" small"
41
+ {{ on " click" this.toggleExpanded }}
42
+ />
54
43
</div >
55
44
{{ /if }}
56
45
</div >
You can’t perform that action at this time.
0 commit comments