Refactor #6691 - For OverlayBadge

pull/6697/head
tugcekucukoglu 2024-10-31 12:05:12 +03:00
parent 556a5508ef
commit 5ab7bf7baa
1 changed files with 6 additions and 2 deletions

View File

@ -7,8 +7,8 @@ const theme = ({ dt }) => `
.p-overlaybadge .p-badge { .p-overlaybadge .p-badge {
position: absolute; position: absolute;
top: 0; inset-block-start: 0;
right: 0; inset-inline-end: 0;
transform: translate(50%, -50%); transform: translate(50%, -50%);
transform-origin: 100% 0; transform-origin: 100% 0;
margin: 0; margin: 0;
@ -16,6 +16,10 @@ const theme = ({ dt }) => `
outline-style: solid; outline-style: solid;
outline-color: ${dt('overlaybadge.outline.color')}; outline-color: ${dt('overlaybadge.outline.color')};
} }
.p-overlaybadge .p-badge:dir(rtl) {
transform: translate(-50%, -50%);
}
`; `;
const classes = { const classes = {