Skip to content

Commit 2eafdf9

Browse files
chore: popover | use sx for root styling
1 parent e794e36 commit 2eafdf9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/primeng/src/popover/popover.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const POPOVER_INSTANCE = new InjectionToken<Popover>('POPOVER_INSTANCE');
5353
<div
5454
[pBind]="ptm('root')"
5555
[class]="cn(cx('root'), styleClass)"
56+
[style]="sx('root')"
5657
[ngStyle]="style"
5758
(click)="onOverlayClick($event)"
5859
role="dialog"
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import { Injectable } from '@angular/core';
2-
import { style as popover_style } from '@primeuix/styles/popover';
2+
import { style } from '@primeuix/styles/popover';
33
import { BaseStyle } from 'primeng/base';
44

5-
const style = /*css*/ `
6-
${popover_style}
7-
/*For PrimeNG*/
8-
.p-popover {
9-
position: absolute;
10-
}`;
5+
const inlineStyles = {
6+
root: () => ({ position: 'absolute' })
7+
};
118

129
const classes = {
1310
root: 'p-popover p-component',
@@ -21,4 +18,6 @@ export class PopoverStyle extends BaseStyle {
2118
style = style;
2219

2320
classes = classes;
21+
22+
inlineStyles = inlineStyles;
2423
}

0 commit comments

Comments
 (0)