Coder Social home page Coder Social logo

Comments (6)

emlove avatar emlove commented on July 25, 2024

Do we know if Polymer provides any tools for us to use for RTL support? Particularly if sliders aren't working I'd be interested in knowing if there's an upstream solution.

Also it would be great if we can find any prior discussions of other open-source projects tackling this, especially ones that use Polymer.

from architecture.

emlove avatar emlove commented on July 25, 2024

Also for reference here is the material design guidelines: https://material.io/design/usability/bidirectionality.html#

from architecture.

balloob avatar balloob commented on July 25, 2024

I am fine with adding RTL styling. However, it's unreasonable to expect developers adding features making sure that it works with RTL. It adds another burden and requires more knowledge to add things. So you, or other RTL developers, will need to keep an eye on this yourself and fix bugs as they come up.

Instead of making lists of what to fix, let's start and see if it works with a single component: the sidebar. Here is an MVP that you could implement:

  • Each language that is RTL will need to have a new attribute added: isRTL = true.
  • This should be reflected by the LocalizeMixin as an attribute on the custom element. To do this, it should be stored in app.js on the hass object so that every component can have access to it.
  • We can then add styling to ha-sidebar.js by using :host([rtl]) as a CSS selector.

If you can get this working, we can look at adding it to other components.

For the Polymer components, they are no longer maintaining the paper-* elements, instead they are now saying that we should use material-components-web-components.

from architecture.

rhayun avatar rhayun commented on July 25, 2024

home-assistant/frontend#1966

from architecture.

awarecan avatar awarecan commented on July 25, 2024

can be closed?

from architecture.

yosilevy avatar yosilevy commented on July 25, 2024

Yes. Closed. Constantly improving it...

from architecture.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.