google / automotive-design-compose

Automotive Design for Compose is an extension to Jetpack Compose that allows every screen, component, and overlay of your Android App to be defined in Figma, and lets you see the latest changes to your Figma design in your app, immediately!
https://google.github.io/automotive-design-compose/
Apache License 2.0
116 stars 17 forks source link

RHD RTL support #1350

Open miguel-galarza opened 4 months ago

miguel-galarza commented 4 months ago

Currently there is no automatic support to RHD (Right-Hand Drive) and RTL (Right-to-Left) in designCompose, and therefore multiple Figma files should be created for rendering different layouts. Is this feature planned?

iamralpht commented 2 months ago

That's correct -- we'd recommend using variants at the root layer to achieve RHD and RTL, because automatic mirroring doesn't get the right result in cars. Would this work for you @miguel-galarza ?

We could specify the keywords/enums for RHD and RTL as part of the DesignCompose framework, rather than the application needing to specify it itself.

miguel-galarza commented 2 months ago

Hi, thank you for the reply, yes this could a way to implement it.