Skip to content

Commit

Permalink
style refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Jul 26, 2024
1 parent 6d56293 commit 1ce8277
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/app/components/base/style/basestyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ const theme = ({ dt }) => `
.p-overlay-mask-leave {
animation: p-overlay-mask-leave-animation ${dt('mask.transition.duration')} forwards;
}
@keyframes p-overlay-mask-enter-animation {
/* Temporarily disabled, distrupts PrimeNG overlay animations */
/* @keyframes p-overlay-mask-enter-animation {
from {
background: transparent;
}
Expand All @@ -121,7 +121,7 @@ const theme = ({ dt }) => `
to {
background: transparent;
}
}
}*/
`;

const css = ({ dt }) => `
Expand Down
8 changes: 5 additions & 3 deletions src/app/components/baseicon/baseicon.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import { Component, Input, ChangeDetectionStrategy, ViewEncapsulation, ElementRef, HostBinding, booleanAttribute } from '@angular/core';
import { Component, Input, ChangeDetectionStrategy, ViewEncapsulation, ElementRef, HostBinding, booleanAttribute, inject } from '@angular/core';
import { ObjectUtils } from 'primeng/utils';
import { BaseComponent } from 'primeng/basecomponent';

@Component({
template: ` <ng-content></ng-content> `,
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
host: {
class: 'p-element p-icon-wrapper'
class: 'p-component p-icon-wrapper'
}
})
export class BaseIcon {
export class BaseIcon extends BaseComponent {
@Input() label: string;

@Input({ transform: booleanAttribute }) spin: boolean = false;
Expand All @@ -24,6 +25,7 @@ export class BaseIcon {
ariaHidden: boolean;

ngOnInit() {
super.ngOnInit();
this.getAttributes();
}

Expand Down

0 comments on commit 1ce8277

Please sign in to comment.