Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
feat(Stepper): use anglify icon internally by default
Browse files Browse the repository at this point in the history
Closes #119
  • Loading branch information
valentingavran committed May 9, 2022
1 parent 7d884e0 commit 2a886ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@
display: flex;
justify-content: center;
align-items: center;
padding: 5px;
max-height: $stepper-step-indicator-font-size;
max-width: $stepper-step-indicator-font-size;
--anglify-icon-size: $stepper-step-indicator-font-size;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@
>
<ng-template slot="visitedIcon">
<ng-container *anglifySlotOutlet="slots | findSlot: 'visitedIcon'">
<svg width="100%" height="100%" viewBox="0 0 24 24">
<path
fill="currentColor"
d="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"
/>
</svg>
<anglify-icon icon="mdi-pencil"></anglify-icon>
</ng-container>
</ng-template>
</anglify-stepper-header>
Expand Down
3 changes: 2 additions & 1 deletion libs/anglify/src/modules/stepper/stepper.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import { Step } from './directives/step/step.directive';
import { StepperNextDirective } from './directives/stepper-next/stepper-next.directive';
import { StepperPreviousDirective } from './directives/stepper-previous/stepper-previous.directive';
import { AnglifyCommonModule } from '../common/anglify-common.module';
import { IconModule } from '../icon/icon.module';

@NgModule({
imports: [AnglifyCommonModule, CommonModule],
imports: [AnglifyCommonModule, CommonModule, IconModule],
declarations: [StepperComponent, StepperHeaderComponent, Step, StepperNextDirective, StepperPreviousDirective],
exports: [AnglifyCommonModule, StepperComponent, Step, StepperNextDirective, StepperPreviousDirective],
})
Expand Down

0 comments on commit 2a886ea

Please sign in to comment.