Skip to content

Commit

Permalink
reverse slider thumb offset if css direction is rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Sep 13, 2024
1 parent 4abf43e commit 13f0796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/universal-remote-card.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/classes/remote-slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ export class RemoteSlider extends BaseRemoteElement {
this.setThumbOffset();
this.style.setProperty(
'--thumb-offset',
`${this.rtl ? '-1 * ' : ''}${this.thumbOffset})px`,
`calc(${this.rtl ? '-1 * ' : ''}${this.thumbOffset})px`,
);

return html`
Expand Down

0 comments on commit 13f0796

Please sign in to comment.