mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-10 14:42:13 -05:00
97f669423a
* 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. |
||
---|---|---|
.. | ||
components | ||
containers | ||
css | ||
helper | ||
lib | ||
log | ||
playground | ||
reducers | ||
.eslintrc.js | ||
index.js |