digdir / designsystemet

Designsystemet
https://designsystemet.no
MIT License
81 stars 38 forks source link

Test right-to-left-text #2729

Open mrosvik opened 1 week ago

mrosvik commented 1 week ago

Testing right-to-left (RTL) text is crucial for ensuring inclusivity, accessibility, and usability across a broader audience. Many languages, such as Arabic, Hebrew, and Persian, use RTL text direction, and ensuring that we supports these languages seamlessly demonstrates a commitment to accommodating diverse linguistic needs.

The internet automatically flips the placement of icons, paddings, and everything else for us when implemented correctly. We just need to use padding-inline-start instead of padding-left, etc., and it’s handled automatically. We should do a test of this before V1, to quickly see the results.

The end user always needs to be aware of layout changes, but the components should be able to adapt in different directions.

Barsnes commented 1 day ago

We know that a few of our components don't currently support RTL, so we should go over and implement this as a part of this task. We could also do this work before the full test, and then fix remaining bugs.