You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a swiper it always assumes direction = "ltr" unless told otherwise either through the usage of the dir property or through calling the changeLanguageDirection function.
Suggested solution
On creation the main init function could check for the overall document direction and set it accordingly. The behavior could be controlled by providing "auto" as dir attribute on the swiper:
if (swiper.dir == "auto") {
swiper.changeLanguageDirection(document.documentElement.getAttribute("dir"));
}
Alternative
No response
Additional context
Dynamic changes of the language direction can be handled by the developer based on concrete implementation.
Clear and concise description of the problem
When creating a swiper it always assumes direction = "ltr" unless told otherwise either through the usage of the dir property or through calling the changeLanguageDirection function.
Suggested solution
On creation the main init function could check for the overall document direction and set it accordingly. The behavior could be controlled by providing "auto" as dir attribute on the swiper:
Alternative
No response
Additional context
Dynamic changes of the language direction can be handled by the developer based on concrete implementation.
Validations
Would you like to open a PR for this feature?
The text was updated successfully, but these errors were encountered: