Skip to content

Commit

Permalink
refactor(indicators): refactor indicators component template files
Browse files Browse the repository at this point in the history
  • Loading branch information
MGREMY committed Jan 16, 2024
1 parent 9a9d25d commit 8641834
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div
class="flex-shrink-0"
[ngClass]="[
this.placement && this.offset ? offsetClasses[this.placement] : '',
placement ? 'absolute ' + placementClasses[placement] : '',
colorClasses[this.color],
sizeClasses[this.size],
rounded ? 'rounded' : 'rounded-full',
border ? 'border-2 border-white dark:border-gray-800' : ''
]"
>
<ng-content></ng-content>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,7 @@ const offsets = {
standalone: true,
imports: [NgClass],
selector: 'flowbite-indicator',
template: `
<div
class="flex-shrink-0"
[ngClass]="[
this.placement && this.offset ? offsetClasses[this.placement] : '',
placement ? 'absolute ' + placementClasses[placement] : '',
colorClasses[this.color],
sizeClasses[this.size],
rounded ? 'rounded' : 'rounded-full',
border ? 'border-2 border-white dark:border-gray-800' : ''
]"
>
<ng-content></ng-content>
</div>
`,
templateUrl: './indicators.component.html',
})
export class IndicatorComponent {
@Input() pill = false;
Expand Down

0 comments on commit 8641834

Please sign in to comment.