]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Changed RTL processing of carousel control icons (#39536)
authorAbdullah Alharbi <mr.abdullah.alharbi@gmail.com>
Tue, 6 Feb 2024 20:02:43 +0000 (23:02 +0300)
committerGitHub <noreply@github.com>
Tue, 6 Feb 2024 20:02:43 +0000 (22:02 +0200)
* Changed RTL processing of carousel control icons

* Update scss/_carousel.scss

---------

Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
scss/_carousel.scss

index 0ac8f8714fb2cf49cb8e4218c266f919eca6d55a..3a1352200151aa2bda0c206ccbf281cf01244ddf 100644 (file)
   background-size: 100% 100%;
 }
 
-/* rtl:options: {
-  "autoRename": true,
-  "stringMap":[ {
-    "name"    : "prev-next",
-    "search"  : "prev",
-    "replace" : "next"
-  } ]
-} */
 .carousel-control-prev-icon {
-  background-image: escape-svg($carousel-control-prev-icon-bg);
+  background-image: escape-svg($carousel-control-prev-icon-bg) #{"/*rtl:" + escape-svg($carousel-control-next-icon-bg) + "*/"};
 }
 .carousel-control-next-icon {
-  background-image: escape-svg($carousel-control-next-icon-bg);
+  background-image: escape-svg($carousel-control-next-icon-bg) #{"/*rtl:" + escape-svg($carousel-control-prev-icon-bg) + "*/"};
 }
 
 // Optional indicator pips/controls