Slidy
Slidy copied to clipboard
@slidy/svelte: direction
The problem
There should be an option to set a direction as boolean prop rtl
as some languages have right-to-left direction. Sure, user can traverse the array of items in different direction itself, still, it is a good enhancement to implement.
The implementation
There are two options. I think, it should be implemented using new CSS Logical Properties, as it would use less code instead of just meddling with items order,
Since v3.4.9 @slidy/core automated calculate direction from rendered children flow 🤓
In template just needed css rules, like: flex-flow: row-reverse
, direction: rtl
or html attribute on target node dir="rtl"
... that's it🤷🏻♂️
I feels like flex-flow: row-reverse
is an odd choice here. It breaks the visual order, while direction
not.
What do you mean for direction
?
I mean direction property.
Direction control is implemented, no need for this issue anymore.