-
Notifications
You must be signed in to change notification settings - Fork 107
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
Support configuring a form to read right to left via the properties panel #1205
Comments
Edit:Nevermind this, it's only relevant in the context of external configuration, which we can tackle later. I'll specify the title of this issue. |
@Skaiir Thank you. I played around with the code and this is what I achieved. I created a Capture.mp4As you can see, the |
@okaeiz I would say, add your entry in the appearance group directly. The reason we bring all the properties in via groups like this is to (in theory, not sure it works at the moment 😏) preserve the group opening state across components, on the assumption that people may want to edit appearance related things in batches. So you'd just have a check that does if But yes you're on the right track. The PR needs to be cleaned up however, I expect maybe 1 or 2 commits, and not such a huge diff. |
@Skaiir Thank you for the guidance. So if I'm not mistaken, I should do the following:
Despite the implementation is not complete, I just created the PR in order to confirm I'm doing things right. I'll adhere to what you requested in the next PR. Moreover, I didn't fully comprehend what you meant by "such a huge diff". Do you think I should keep the whole scope smaller in a single PR? |
@okaeiz Just look at the PR and the associated changes, there's -6000 and +2000 lines, this is unexpected and most likely due to the fact that your branch is weirdly synchronized (there's also a bunch of merge commits in there that are messy). The 1/2 commits is just based on how I'd split it up for something this size, like maybe one commit for the properties panel changes, and then one commit for the button changes. You don't have to stick to it if you can split it in other ways that make sense, but right now it looks messy so it's hard for me to take a look at it. But basically, it should be clean once you're ready for me to review it. Until then do what you like, but keep it in draft so we know you're not done ;). But you're pointing to the develop branch, which is the correct thing to do for new functionality. If there's anything else let me know. You are heading the right direction from what I'm seeing. |
@Skaiir I highly appreciate your help. I'll let you know if I had any further questions. 🤝 |
Is your feature request related to a problem? Please describe.
Yes. I am using form-js in Camunda Desktop Modeler. When the form is in Hebrew, Persian or Arabic, the placeholders, labels and values are rendered left to right. It is frustrating for RTL users. I request the RTL support for forms or form elements separately.
Describe the solution you'd like
I think there are 2 ways to achieve this:
Describe alternatives you've considered
After the implementation of form-js HTML View element, the HTML tags for templating and representing data (such as h1, h2, a, li, etc.) could be modified and assigned CSS attributes. I managed to change the font and direction in HTML View. But apparently the use of JavaScript for passing input values in HTML View is disabled due to security reasons. In other words, no inputs can be used in HTML View. Therefore, I still have to use text field and text area which are not customizable.
Additional context
I have also raised issues in Camunda platform official repositories. The RTL support seems to be a good idea and it definitely is; because it attracts a large number of users who speak an RTL language to the community.
The text was updated successfully, but these errors were encountered: