Skip to content

Commit

Permalink
fix(ui5-dialog): Fixed RTL mode (#3070)
Browse files Browse the repository at this point in the history
Fixes: #3013
  • Loading branch information
TeodorTaushanov committed Apr 1, 2021
1 parent 00d0be4 commit 0aac048
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion packages/main/src/Popup.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
aria-modal="{{_ariaModal}}"
aria-label="{{_ariaLabel}}"
aria-labelledby="{{_ariaLabelledBy}}"
dir="{{dir}}"
dir="{{effectiveDir}}"
tabindex="-1"
@keydown={{_onkeydown}}
@focusout={{_onfocusout}}
Expand Down
5 changes: 0 additions & 5 deletions packages/main/src/Popup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { renderFinished } from "@ui5/webcomponents-base/dist/Render.js";
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
import { getRTL } from "@ui5/webcomponents-base/dist/config/RTL.js";
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
import { getFirstFocusableElement, getLastFocusableElement } from "@ui5/webcomponents-base/dist/util/FocusableElements.js";
import createStyleInHead from "@ui5/webcomponents-base/dist/util/createStyleInHead.js";
Expand Down Expand Up @@ -514,10 +513,6 @@ class Popup extends UI5Element {
return this.shadowRoot.querySelector(".ui5-popup-root");
}

get dir() {
return getRTL() ? "rtl" : "ltr";
}

get styles() {
return {
root: {},
Expand Down

0 comments on commit 0aac048

Please sign in to comment.