Skip to content

Commit a73bb7f

Browse files
committed
feat(providers): add possibility to override theme too in auth component
1 parent e710497 commit a73bb7f

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/module/components/ngx-auth-firebaseui/auth.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,4 +263,4 @@
263263

264264
</mat-tab-group>
265265
<mat-divider></mat-divider>
266-
<ngx-auth-firebaseui-providers [providers]="providers"></ngx-auth-firebaseui-providers>
266+
<ngx-auth-firebaseui-providers [providers]="providers" [theme]="providersTheme"></ngx-auth-firebaseui-providers>

src/module/components/ngx-auth-firebaseui/auth.component.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
.mat-card {
22
margin: 2rem;
3-
4-
mat-checkbox {
5-
6-
}
7-
83
}
94

105
.space-top {

src/module/components/ngx-auth-firebaseui/auth.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
OnDestroy,
1010
OnInit,
1111
Output,
12-
PLATFORM_ID,
12+
import { Theme } from '../providers/auth.providers.component';
1313
SimpleChanges,
1414
ViewChild
1515
} from '@angular/core';
@@ -44,6 +44,9 @@ export class AuthComponent implements OnInit, AfterViewInit, OnChanges, OnDestro
4444
@ViewChild(MatPasswordStrengthComponent, {static: false}) passwordStrength: MatPasswordStrengthComponent;
4545

4646
@Input() providers: string[] | string = AuthProvider.ALL; // google, facebook, twitter, github as array or all as one single string
47+
@Input() providers: AuthProvider[] | AuthProvider; // google, facebook, twitter, github as array or all as one single string
48+
@Input() providersTheme: Theme; // Classic, Stroked, etc.
49+
4750
@Input() appearance: MatFormFieldAppearance;
4851
@Input() tabIndex: number | null;
4952
@Input() registrationEnabled = true;

0 commit comments

Comments
 (0)