astro-tweet
astro-tweet copied to clipboard
Use logical properties to support RTL and more writing modes
This PR replaces physical properties with logical ones to enhance support for languages that are not left-to-right (LTR).
I’ve updated the demo to showcase different options:
While logical properties are not new, frameworks like Tailwind have only recently begun incorporating them more extensively. The properties used in this PR require Chromium 87+ (released on 2020-11-17). If backward compatibility or upstream mergability is a concern, feel free to skip this PR :-) Another option is to use the PostCSS Logical Properties and Values plugin for fallback support if you’re working in an LTR-only environment.
Additionally, I suggest we consider adding i18n features, or at least allowing users to customize button text.