Skip to content
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

Internationalized styling #19

Open
Malvoz opened this issue May 28, 2020 · 1 comment
Open

Internationalized styling #19

Malvoz opened this issue May 28, 2020 · 1 comment

Comments

@Malvoz
Copy link
Contributor

Malvoz commented May 28, 2020

It'd be super cool if internationalized styling was built in, taking this CSS as a random example:

label {
margin-right: 10px;
}

Using flow-relative properties as defined in CSS Logical Properties and Values the margin in this example would make sense for rtl languages as well:

label {
  margin-right: 10px; /* physical property: used as fallback for unsupporting browsers */
  margin-inline-end: 10px; /* logical property: margin-right in latin, margin-left in arabic */
}

The physical (non-logical) declarations could be removed once browser support for Logical Properties is considered good enough.


With this we could add something like "🌎 Internationalization" to the current list:

A collection of generic web components with a focus on:

  • 🚹 Accessibility
  • 🏗 Easy to use
  • 🎨 Easy to style

... and "Easy to style" would apply to everyone. 🥰

@thepassle
Copy link
Owner

Thats a good point. Do you see any opportunities of where this could be implemented for the other components as well? I'd be happy to take a PR for this if you're interested 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants