From 8e0aea6fcdc0b554b23132599860e77bf3607db7 Mon Sep 17 00:00:00 2001 From: Ruhan Monte Date: Tue, 15 Apr 2025 13:41:29 -0300 Subject: [PATCH] fix(theme): use p-dark as PrimeNG darkModeSelector to prevent fallback to light styles --- booklore-ui/src/main.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/booklore-ui/src/main.ts b/booklore-ui/src/main.ts index ed04cfdbf..5032dcb00 100644 --- a/booklore-ui/src/main.ts +++ b/booklore-ui/src/main.ts @@ -11,8 +11,8 @@ import { bootstrapApplication } from '@angular/platform-browser'; import { AppComponent } from './app/app.component'; import Aura from '@primeng/themes/aura'; import { routes } from './app/app.routes'; -import {AuthInterceptorService} from './app/auth-interceptor.service'; -import {AuthService} from './app/core/service/auth.service'; +import { AuthInterceptorService } from './app/auth-interceptor.service'; +import { AuthService } from './app/core/service/auth.service'; bootstrapApplication(AppComponent, { providers: [ @@ -33,7 +33,10 @@ bootstrapApplication(AppComponent, { provideAnimationsAsync(), providePrimeNG({ theme: { - preset: Aura + preset: Aura, + options: { + darkModeSelector: '.p-dark' + } } }) ]