feat(login): update login page styles and integrate neutral button variant
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
}
|
||||
|
||||
.btn-outline-primary,
|
||||
.btn-outline-neutral,
|
||||
.btn-outline-danger {
|
||||
--bs-btn-bg: transparent;
|
||||
--bs-btn-hover-color: #fff;
|
||||
@@ -85,6 +86,17 @@
|
||||
--bs-btn-disabled-border-color: color-mix(in srgb, transparent 35%, var(--tenant-primary));
|
||||
}
|
||||
|
||||
.btn-outline-neutral {
|
||||
--bs-btn-color: #666666;
|
||||
--bs-btn-border-color: #a0a0a0;
|
||||
--bs-btn-hover-bg: #a0a0a0;
|
||||
--bs-btn-hover-border-color: #a0a0a0;
|
||||
--bs-btn-active-bg: #8a8a8a;
|
||||
--bs-btn-active-border-color: #8a8a8a;
|
||||
--bs-btn-disabled-color: rgba(102, 102, 102, 0.55);
|
||||
--bs-btn-disabled-border-color: rgba(160, 160, 160, 0.55);
|
||||
}
|
||||
|
||||
.btn-outline-danger {
|
||||
--bs-btn-color: var(--tenant-danger);
|
||||
--bs-btn-border-color: var(--tenant-danger);
|
||||
|
||||
@@ -4,6 +4,7 @@ import { NgClass } from '@angular/common';
|
||||
export type ButtonVariant =
|
||||
| 'primary'
|
||||
| 'secondary'
|
||||
| 'neutral-outline'
|
||||
| 'danger'
|
||||
| 'danger-secondary'
|
||||
| 'cancel';
|
||||
@@ -13,18 +14,23 @@ export type ButtonVariant =
|
||||
imports: [NgClass],
|
||||
templateUrl: './button.component.html',
|
||||
styleUrl: './button.component.scss',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
host: {
|
||||
'[class]': 'hostClass()'
|
||||
}
|
||||
})
|
||||
export class ButtonComponent {
|
||||
readonly variant = input<ButtonVariant>('primary');
|
||||
readonly type = input<'button' | 'submit' | 'reset'>('button');
|
||||
readonly disabled = input(false);
|
||||
readonly hostClass = input<string>('');
|
||||
readonly buttonClass = input<string>('');
|
||||
|
||||
protected readonly buttonClasses = computed(() => {
|
||||
const variants: Record<ButtonVariant, string> = {
|
||||
primary: 'btn-primary',
|
||||
secondary: 'btn-outline-primary',
|
||||
'neutral-outline': 'btn-outline-neutral',
|
||||
danger: 'btn-danger',
|
||||
'danger-secondary': 'btn-outline-danger',
|
||||
cancel: 'btn-secondary'
|
||||
|
||||
Reference in New Issue
Block a user