Skip to content

Commit f69022d

Browse files
vishalshrm539Sharmatumms2021389
authored
Changes for handling default theme (#659)
Co-authored-by: Sharma <[email protected]> Co-authored-by: tumms2021389 <[email protected]>
1 parent 7170250 commit f69022d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/_samples/embedded/embedded.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class EmbeddedComponent implements OnInit, OnDestroy {
6262

6363
const { authConfig, theme } = await getSdkConfig();
6464
document.body.classList.remove(...['light', 'dark']);
65-
document.body.classList.add(theme || 'dark');
65+
document.body.classList.add(theme || 'light');
6666

6767
initializeAuthentication(authConfig);
6868

src/app/_samples/full-portal/full-portal.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class FullPortalComponent implements OnInit, OnDestroy {
5858
async ngOnInit() {
5959
const { theme } = await this.scservice.readSdkConfig();
6060
document.body.classList.remove(...['light', 'dark']);
61-
document.body.classList.add(theme || 'dark');
61+
document.body.classList.add(theme || 'light');
6262
this.initialize();
6363
}
6464

0 commit comments

Comments
 (0)