Skip to content

Commit 38a875c

Browse files
committed
added drill down type button
Signed-off-by: Efren Lim <[email protected]>
1 parent 90614bd commit 38a875c

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

projects/lfx-component-lib/src/lib/controls/buttons/__docs__/buttons.stories.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const meta: Meta<ButtonsComponent> = {
1919
tags: ['autodocs'],
2020
render: (args) => ({
2121
template: `
22-
<lfx-buttons type="${args.type}" [disabled]="${args.disabled}">
22+
<lfx-buttons type="${args.type}" [disabled]="${args.disabled}" [isDrillDown]="${args.isDrillDown}">
2323
<i class="fa-sharp fa-light fa-file-chart-column"></i>
2424
<span>Button Text</span>
2525
<i class="fa-sharp fa-light fa-arrow-right"></i>
@@ -34,6 +34,9 @@ const meta: Meta<ButtonsComponent> = {
3434
disabled: {
3535
control: 'boolean',
3636
},
37+
isDrillDown: {
38+
control: 'boolean',
39+
},
3740
},
3841
args: {
3942
type: 'primary' as IButtonType,

projects/lfx-component-lib/src/lib/controls/buttons/buttons.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<button
22
class="lfx-button lfx-button--{{ type().toLowerCase() }}"
3+
[class.lfx-button--drill-down]="isDrillDown()"
34
[disabled]="disabled()"
45
(click)="onClick()"
56
>

projects/lfx-component-lib/src/lib/controls/buttons/buttons.component.scss

+5
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,9 @@
6666
color: $grey-700;
6767
}
6868
}
69+
70+
&.lfx-button--drill-down {
71+
border-top-left-radius: $dim-40;
72+
border-bottom-left-radius: 0;
73+
}
6974
}

projects/lfx-component-lib/src/lib/controls/buttons/buttons.component.ts

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export class ButtonsComponent {
1313
type = input<IButtonType>('primary');
1414
disabled = input<boolean>(false);
1515

16+
isDrillDown = input<boolean>(false);
17+
1618
click = output<void>();
1719

1820
onClick() {

0 commit comments

Comments
 (0)