Explorar el Código

feat: Zoom controls are pushed to the right edge for Right-To-Left languages (#2021) (#2037)

Johann Hubert Sonntagbauer hace 4 años
padre
commit
009eba6315
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      src/css/styles.scss

+ 7 - 1
src/css/styles.scss

@@ -262,9 +262,15 @@ button,
   align-items: flex-start;
   cursor: default;
   pointer-events: none !important;
-  left: 0.25rem;
   z-index: 100;
 
+  :root[dir="ltr"] & {
+    left: 0.25rem;
+  }
+  :root[dir="rtl"] & {
+    right: 0.25rem;
+  }
+
   &--transition-left {
     section {
       width: 185px;