scratch-paint/src
chrisgarrity 97f669423a
Make PaintEditor component rtl aware (#617)
* Make PaintEditor component rtl aware

Fixes the color-picker and any other popover elements.

Adds an RTL prop to the PaintEditor that initializes the `layout` state in redux. Any other components that need to know the layout refer to the state in redux.

I debated whether the state should just be a boolean (true for RTL), or ‘rtl’, ‘ltr’. I went with the latter, but could be convinced that boolean would be better.

I did not add `dir=“rtl”` to the font picker dropdown as all the names are in LTR languages.

Question: Should the sliders reverse direction, and if so, is it worth doing right now when the layout of the color picker may change.

Adding the rtl prop and the `dir=…` to the PaintEditorComponent fixes layout issues in the playground.

* Don’t reverse gradient swatches: the fill colors (and swatch preview) should represent the way the left-right colors will blend when filling a shape.
2018-08-23 19:08:56 -04:00
..
components Make PaintEditor component rtl aware (#617) 2018-08-23 19:08:56 -04:00
containers Make PaintEditor component rtl aware (#617) 2018-08-23 19:08:56 -04:00
css Add coming soon for bitmap, text tool 2017-12-21 11:24:38 -05:00
helper Scrollbars (#602) 2018-08-16 16:49:43 -04:00
lib Localize tool tooltips (#573) 2018-08-06 09:16:35 -04:00
log code review 2017-07-27 00:34:33 -04:00
playground Update import and export types (#412) 2018-05-01 16:18:24 -04:00
reducers Make PaintEditor component rtl aware (#617) 2018-08-23 19:08:56 -04:00
.eslintrc.js Fix linting 2018-05-14 14:28:36 -04:00
index.js Add group and ungroup 2017-10-24 13:26:43 -04:00