Refactor #6691 - For OverlayBadge
parent
556a5508ef
commit
5ab7bf7baa
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue