From 5ab7bf7baa09865d0aa9926b096dec1949e9c348 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 31 Oct 2024 12:05:12 +0300 Subject: [PATCH] Refactor #6691 - For OverlayBadge --- .../primevue/src/overlaybadge/style/OverlayBadgeStyle.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/primevue/src/overlaybadge/style/OverlayBadgeStyle.js b/packages/primevue/src/overlaybadge/style/OverlayBadgeStyle.js index 9ee2e442e..af17d5d28 100644 --- a/packages/primevue/src/overlaybadge/style/OverlayBadgeStyle.js +++ b/packages/primevue/src/overlaybadge/style/OverlayBadgeStyle.js @@ -7,8 +7,8 @@ const theme = ({ dt }) => ` .p-overlaybadge .p-badge { position: absolute; - top: 0; - right: 0; + inset-block-start: 0; + inset-inline-end: 0; transform: translate(50%, -50%); transform-origin: 100% 0; margin: 0; @@ -16,6 +16,10 @@ const theme = ({ dt }) => ` outline-style: solid; outline-color: ${dt('overlaybadge.outline.color')}; } + +.p-overlaybadge .p-badge:dir(rtl) { + transform: translate(-50%, -50%); +} `; const classes = {