diff --git a/src/components/color-picker/color-picker.css b/src/components/color-picker/color-picker.css index e0a8db4e..d7ae648c 100644 --- a/src/components/color-picker/color-picker.css +++ b/src/components/color-picker/color-picker.css @@ -32,10 +32,14 @@ margin: 8px; } -.label-readout { +[dir="ltr"] .label-readout { margin-left: 10px; } +[dir="rtl"] .label-readout { + margin-right: 10px; +} + .label-name { font-weight: bold; } @@ -96,6 +100,14 @@ margin: 8px; } -.gradient-picker-row > img + img { +[dir="ltr"] .gradient-picker-row > img + img { margin-left: calc(2 * $grid-unit); } + +[dir="rtl"] .gradient-picker-row > img + img { + margin-right: calc(2 * $grid-unit); +} + +[dir="rtl"] .gradient-swatches-row { + flex-direction: row-reverse; +} diff --git a/src/components/color-picker/color-picker.jsx b/src/components/color-picker/color-picker.jsx index 015e275f..7724db85 100644 --- a/src/components/color-picker/color-picker.jsx +++ b/src/components/color-picker/color-picker.jsx @@ -56,7 +56,10 @@ class ColorPickerComponent extends React.Component { } render () { return ( -