mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Theming API: Refactor on $dt method and inline styles for css variables
This commit is contained in:
parent
ddeaab525a
commit
51110b585a
12 changed files with 129 additions and 67 deletions
|
@ -63,7 +63,7 @@ import ConfirmationEventBus from 'primevue/confirmationeventbus';
|
|||
import FocusTrap from 'primevue/focustrap';
|
||||
import OverlayEventBus from 'primevue/overlayeventbus';
|
||||
import Portal from 'primevue/portal';
|
||||
import { $dtp } from 'primevue/themes';
|
||||
import { $dt } from 'primevue/themes';
|
||||
import { ConnectedOverlayScrollHandler, DomHandler, ZIndexUtils } from 'primevue/utils';
|
||||
import BaseConfirmPopup from './BaseConfirmPopup.vue';
|
||||
|
||||
|
@ -204,7 +204,7 @@ export default {
|
|||
arrowLeft = targetOffset.left - containerOffset.left;
|
||||
}
|
||||
|
||||
this.container.style.setProperty($dtp('overlay.arrow.left').name, `${arrowLeft}px`);
|
||||
this.container.style.setProperty($dt('overlay.arrow.left').name, `${arrowLeft}px`);
|
||||
|
||||
if (containerOffset.top < targetOffset.top) {
|
||||
this.container.setAttribute('data-p-confirm-popup-flipped', 'true');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue