We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d14936 commit 7555cefCopy full SHA for 7555cef
1 file changed
core/src/utils/badge-position.ts
@@ -144,14 +144,7 @@ export function positionBadge(config: BadgePositionConfig): void {
144
const clampedTop = clamp ? Math.max(top, deltaTop) : top;
145
const clampedBottom = clamp ? Math.max(bottom, deltaBottom) : bottom;
146
147
- // Set horizontal position based on direction
148
- if (rtl) {
149
- badge.style.right = `${inlineStart}px`;
150
- badge.style.left = '';
151
- } else {
152
- badge.style.left = `${inlineStart}px`;
153
- badge.style.right = '';
154
- }
+ badge.style.insetInlineStart = `${inlineStart}px`;
155
156
if (vertical === 'top') {
157
badge.style.top = `${clampedTop}px`;
0 commit comments