Skip to content

Commit

Permalink
fix(layout): AppBar use proper appearance for back button
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea committed Sep 17, 2024
1 parent bee65c9 commit 67d1d86
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion projects/layout/components/app-bar/app-bar-back.component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {
TuiAppearance,
type TuiAppearanceOptions,
tuiAppearanceOptionsProvider,
} from '@taiga-ui/core';

@Component({
standalone: true,
selector: 'button[tuiAppBarBack], a[tuiAppBarBack]',
templateUrl: './app-bar-back.template.html',
styleUrls: ['./app-bar-back.style.less'],
hostDirectives: [TuiAppearance],
providers: [tuiAppearanceOptionsProvider(TuiAppBarBack)],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class TuiAppBarBack {}
export class TuiAppBarBack implements TuiAppearanceOptions {
appearance = 'link';
}
2 changes: 1 addition & 1 deletion projects/layout/components/app-bar/app-bar-back.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
display: flex;
align-items: center;
padding: 0 0.625rem 0 0.125rem;
color: var(--tui-text-action);
cursor: pointer;

:host-context([data-platform='android']) {
font-size: 0;
Expand Down

0 comments on commit 67d1d86

Please sign in to comment.