-
Notifications
You must be signed in to change notification settings - Fork 273
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
Dialog: RTL is not working #3013
Comments
Hello @SAP/ui5-webcomponents-topic-rd, RTL is not affecting dialog and popups when set in the html. Possible partial solution for the content might be to use dir="{{effectiveDir}}" in the popup template. |
Hi @SAP/ui5-webcomponents-team, is there any way to set RTL globally, so each ui5 webcomponents are in rtl mode? |
There used to be a config field, we removed it. RTL is now set via the dir attribute. <body dir="rtl" If you need to change from LTR to RTL and vice versa dynamically at runtime, you have to use import applyDirection from "@ui5/webcomponents-base/dist/locale/applyDirection.js";
document.body.dir = "rtl";
applyDirection(); It is explained here: https://github.com/SAP/ui5-webcomponents/blob/master/docs/Configuration.md#rtl |
@TeodorTaushanov In Popup.hbs Instead of <section dir="{{dir}}" you might have to use <section dir="{{effectiveDir}}" |
Describe the bug
RTL is not working as expected for ui5-dialog
To reproduce
Steps to reproduce the behavior:
This is paragraph
layouts as expectedIsolated example
https://codesandbox.io/s/naughty-vaughan-txwbf?file=/src/App.js
Expected behavior
The elements in ui5-dialog layout as RTL as expected
Screenshots
Context
The text was updated successfully, but these errors were encountered: