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

Adding Direction Property to Properties Panel - RTL support #1185

Open
guy-ng opened this issue May 23, 2024 · 1 comment
Open

Adding Direction Property to Properties Panel - RTL support #1185

guy-ng opened this issue May 23, 2024 · 1 comment
Labels
backlog Queued in backlog enhancement New feature or request

Comments

@guy-ng
Copy link

guy-ng commented May 23, 2024

Adding Direction Property to Properties Panel

This feature proposal outlines adding a "direction" property to the properties panel for elements and the main form. Here's the breakdown:

Property: direction

Values:
ltr: Left-to-Right text direction (default)
rtl: Right-to-Left text direction
inherit: Inherits direction from parent element

Implementation:
Element Properties Panel:

  • Add a new section or dropdown within the properties panel specifically for "direction."
  • The dropdown should offer three options: ltr, rtl, and inherit.
  • By default, the selected option should be inherit.
  • Selecting a specific direction (ltr or rtl) will override any inherited direction for that element.

Main Form Properties Panel:

  • Similar to element properties, add a "direction" section or dropdown.
  • However, only offer ltr and rtl options, as inheriting direction doesn't make sense at the form level.
  • The default selection should be inherit, which will use the system's default direction.
  • Choosing ltr or rtl will set the overall direction for the entire form.

Benefits:

  • Enables creation of Arabic and Hebrew forms with proper text direction.
  • Improves user experience by allowing control over text layout.
  • Provides a clear and consistent way to manage directionality.

Additional Considerations:

  • Consider visual cues in the properties panel to indicate the currently selected direction (e.g., icons or text labels).
  • Ensure proper cascading of direction properties when elements are nested within each other.
  • Update any relevant documentation or tutorials to reflect the new feature.
  • Overall, this feature addition will enhance the platform's capabilities for creating multilingual forms by supporting Right-to-Left languages.
@okaeiz
Copy link

okaeiz commented May 23, 2024

This looks exactly like what we need.
Using Direction, if it's set to RTL, it should render the placeholder and the label of the element on right. Also, if the the user enters some value, it should be rendered on right. This can be applied on a variety of elements such as text field, number, text area, select, date-time, etc.

@nikku nikku added the backlog Queued in backlog label Jul 23, 2024 — with bpmn-io-tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants