Skip to content

Commit 2d75012

Browse files
palbizuPatricio Albizu
andauthored
feat: adding Medium size support in button (#751)
Co-authored-by: Patricio Albizu <[email protected]>
1 parent f669fb4 commit 2d75012

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

projects/components/src/button/button.component.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe('Button Component', () => {
9595
size: ButtonSize.Medium
9696
});
9797
expect(spectator.query('.button')).toHaveClass('button secondary medium');
98-
expect(spectator.component.getIconSizeClass()).toEqual(IconSize.Small);
98+
expect(spectator.component.getIconSizeClass()).toEqual(IconSize.Medium);
9999

100100
// Tiny
101101
spectator.setInput({

projects/components/src/button/button.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ export class ButtonComponent {
7575
switch (this.size) {
7676
case ButtonSize.Large:
7777
return IconSize.Large;
78+
case ButtonSize.Medium:
79+
return IconSize.Medium;
7880
default:
7981
return IconSize.Small;
8082
}

projects/components/src/time-range/time-range.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { PopoverRef } from '../popover/popover-ref';
2424
<ht-popover (popoverOpen)="this.onPopoverOpen($event)" [closeOnNavigate]="false">
2525
<ht-popover-trigger>
2626
<div class="trigger">
27-
<ht-icon class="trigger-icon" icon="${IconType.Time}" size="${IconSize.Large}"></ht-icon>
27+
<ht-icon class="trigger-icon" icon="${IconType.Time}" size="${IconSize.Medium}"></ht-icon>
2828
<ht-label class="trigger-label" [label]="timeRange.toDisplayString()"></ht-label>
2929
<ht-icon class="trigger-caret" icon="${IconType.ChevronDown}" size="${IconSize.Small}"></ht-icon>
3030
</div>
@@ -59,7 +59,7 @@ import { PopoverRef } from '../popover/popover-ref';
5959
[ngClass]="refreshButton.isEmphasized ? 'emphasized' : ''"
6060
[label]="refreshButton.text$ | async"
6161
icon="${IconType.Refresh}"
62-
size="${ButtonSize.Small}"
62+
size="${ButtonSize.Medium}"
6363
[role]="refreshButton.role"
6464
(click)="refreshButton.onClick()"
6565
>

0 commit comments

Comments
 (0)