Skip to content

Commit

Permalink
fix: toast styles via toastOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tutkli committed Mar 6, 2024
1 parent 702a7c0 commit 0f593cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/docs/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
import { Position, NgxSonnerToaster } from 'ngx-sonner';
import { NgxSonnerToaster, Position } from 'ngx-sonner';
import { ExpandComponent } from './components/expand.component';
import { FooterComponent } from './components/footer.component';
import { HeroComponent } from './components/hero.component';
Expand Down
8 changes: 4 additions & 4 deletions libs/ngx-sonner/src/lib/toast.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import {
AfterViewInit,
ChangeDetectionStrategy,
Component,
ElementRef,
OnDestroy,
ViewChild,
computed,
effect,
ElementRef,
input,
OnDestroy,
signal,
untracked,
ViewChild,
} from '@angular/core';
import { cn } from './internal/cn';
import { AsComponentPipe } from './pipes/as-component.pipe';
Expand Down Expand Up @@ -241,7 +241,7 @@ export class ToastComponent implements AfterViewInit, OnDestroy {

classes: any = computed(() => ({
...defaultClasses,
...this._classes,
...this._classes(),
}));

isFront = computed(() => this.index() === 0);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0f593cb

Please sign in to comment.