Skip to content

Commit 623ab97

Browse files
committed
refactor: migrate to CSS logical properties and values
1 parent 69648b4 commit 623ab97

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

js/src/range-slider.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,7 @@ class RangeSlider extends BaseComponent {
376376
return
377377
}
378378

379-
Object.assign(tooltip.style,
380-
isRTL() ?
381-
{ right: `${percent * 100}%`, marginRight: margin } :
382-
{ left: `${percent * 100}%`, marginLeft: margin }
383-
)
379+
Object.assign(tooltip.style, { insetInlineStart: `${percent * 100}%`, marginInlineStart: margin })
384380
}
385381

386382
_updateTooltip(index, value) {

0 commit comments

Comments
 (0)