Skip to content

Commit

Permalink
fix directionality check (#2235)
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska authored Oct 28, 2024
1 parent 18861f2 commit 8737d6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/pages/resources/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
## Next

- Added support for <kbd>Enter</kbd> to `<sl-split-panel>` to align with ARIA APG's [window splitter pattern](https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/) [#2234]
- Fixed a bug in `<sl-carousel>` that caused the navigation icons to be reversed

## 2.18.0

Expand Down
2 changes: 1 addition & 1 deletion src/components/carousel/carousel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ export default class SlCarousel extends ShoelaceElement {
const currentPage = this.getCurrentPage();
const prevEnabled = this.canScrollPrev();
const nextEnabled = this.canScrollNext();
const isLtr = this.localize.dir() === 'rtl';
const isLtr = this.localize.dir() === 'ltr';

return html`
<div part="base" class="carousel">
Expand Down

0 comments on commit 8737d6c

Please sign in to comment.