New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to mirror style in RTL language? #389
Comments
If it's not possible now I can work on it |
Instead of https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/RTL_Guidelines |
@tajo Thank you man, but Please see this link: https://caniuse.com/mdn-css_properties_padding-inline-start And also you can't use some attribute ex: but you need it: .badge {
position: absolute;
left: 5px;
...
} in RTL .badge {
position: absolute;
right: 5px;
...
} And also sometimes we need to mirror value instead of attribute ex:
|
@tajo This is my purpose: We can create a package called for example import { Provider as StyletronProvider } from "styletron-react";
import { Client as Styletron } from "styletron-engine-atomic";
import { LTRCylinder, RTLCylinder } from "styletron-cylinder";
const isRTL = true; // ex: hardcoded
const engine = new Styletron(isRTL ? RTLCylinder : LTRCylinder);
React.render(
<StyletronProvider value={engine}>
<App />
</StyletronProvider>
); |
You can always create some transformation function and use it in re-exports of |
Hi there, i want to mirror style in RTL langugage for example:
padding-left: 5px
change topadding-right:5px
in RTLHow can I do?
The text was updated successfully, but these errors were encountered: