codyhouse / codyhouse-framework

A lightweight front-end framework for building accessible, bespoke interfaces.
https://codyhouse.co/
MIT License
1.16k stars 173 forks source link

RTL support #87

Open peiche opened 3 years ago

peiche commented 3 years ago

I know nothing about RTL support, but in the latest Boostrap 5 stable release, they migrated all "left" and "right" utility classes to "start" and "end." What do you think about doing this in CodyFrame? I'm happy to open a PR to start the work.

sebastiano-guerriero commented 3 years ago

Hi Paul, I'm doind some research on the best RTL practices to include RTL support in CodyFrame.

This guide seems to be a great place to start: https://rtlstyling.com/posts/rtl-styling

I just started so I'm gonna need a few days to learn more about this important accessibility topic. I'll look more into this and then we can plan the best way to proceed? We do appreciate the help :)

JABClari commented 3 years ago

On board

sebastiano-guerriero commented 3 years ago

What I've learned so far: RTL support is way deeper than I anticipated. Adding margin-start/end utility classes is only a piece of the puzzle. To support multiple directions/writing modes we need to change many utility classes that affect the layout. E.g., float (float-start, float-end), text-align (text-start, text-end) and so on...These logical property are currently supported only in Firefox and are a W3C editotor's draft. I'll keep working on this.

peiche commented 3 years ago

Came across this site, might be helpful. https://rtl.wtf/