Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(layout): AppBar use proper appearance for back button #9061

Merged
merged 2 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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';
}
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
Loading