Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea committed Oct 3, 2024
1 parent f8b49dc commit 26eb912
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ <h3>Truncate</h3>
<ng-container *ngFor="let item of items">
<button
*tuiItem
tuiHintOverflow
tuiLink
type="button"
class="link"
>
{{ item }}
Expand All @@ -16,7 +18,9 @@ <h3>Fade</h3>
<button
*tuiItem
tuiFade
tuiHintOverflow
tuiLink
type="button"
class="link"
>
{{ item }}
Expand All @@ -29,6 +33,7 @@ <h3>Scroll</h3>
<button
*tuiItem
tuiLink
type="button"
>
{{ item }}
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import {Component} from '@angular/core';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {TuiItem} from '@taiga-ui/cdk';
import {TuiLink} from '@taiga-ui/core';
import {TuiHint, TuiLink} from '@taiga-ui/core';
import {TuiBreadcrumbs, tuiBreadcrumbsOptionsProvider, TuiFade} from '@taiga-ui/kit';

@Component({
standalone: true,
imports: [TuiBreadcrumbs, TuiItem, TuiLink, NgForOf, TuiFade],
imports: [TuiBreadcrumbs, TuiItem, TuiLink, NgForOf, TuiFade, TuiHint],
templateUrl: './index.html',
styleUrls: ['./index.less'],
providers: [tuiBreadcrumbsOptionsProvider({icon: '/'})],
Expand Down
6 changes: 5 additions & 1 deletion projects/kit/components/breadcrumbs/breadcrumbs.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
} from '@angular/core';
import {EMPTY_QUERY} from '@taiga-ui/cdk/constants';
import {TuiItem} from '@taiga-ui/cdk/directives/item';
import {tuiHintOptionsProvider} from '@taiga-ui/core';
import {TuiIcon} from '@taiga-ui/core/components/icon';
import {tuiLinkOptionsProvider} from '@taiga-ui/core/components/link';

Expand All @@ -23,7 +24,10 @@ import {TUI_BREADCRUMBS_OPTIONS} from './breadcrumbs.options';
templateUrl: './breadcrumbs.template.html',
styleUrls: ['./breadcrumbs.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [tuiLinkOptionsProvider({appearance: 'icon'})],
providers: [
tuiLinkOptionsProvider({appearance: 'icon'}),
tuiHintOptionsProvider({direction: 'bottom'}),
],
host: {
'[attr.data-size]': 'size',
},
Expand Down

0 comments on commit 26eb912

Please sign in to comment.