astro-tweet icon indicating copy to clipboard operation
astro-tweet copied to clipboard

Use logical properties to support RTL and more writing modes

Open OverflowCat opened this issue 6 months ago • 2 comments

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:

png (14) png (15)

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.

OverflowCat avatar Aug 19 '24 02:08 OverflowCat