File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 55 aria-modal =" {{ _ariaModal }} "
66 aria-label =" {{ _ariaLabel }} "
77 aria-labelledby =" {{ _ariaLabelledBy }} "
8+ dir =" {{ dir }} "
89>
910
1011 <span class =" first-fe" data-ui5-focus-trap tabindex =" 0" @focusin ={{ forwardToLast }} ></span >
Original file line number Diff line number Diff line change 11import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js" ;
2+ import { getRTL } from "@ui5/webcomponents-base/dist/config/RTL.js" ;
23import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js" ;
34import { getFirstFocusableElement , getLastFocusableElement } from "@ui5/webcomponents-base/dist/util/FocusableElements.js" ;
45import createStyleInHead from "@ui5/webcomponents-base/dist/util/createStyleInHead.js" ;
@@ -456,6 +457,10 @@ class Popup extends UI5Element {
456457 return this . ariaLabel || undefined ;
457458 }
458459
460+ get dir ( ) {
461+ return getRTL ( ) ? "rtl" : "ltr" ;
462+ }
463+
459464 get styles ( ) {
460465 return {
461466 root : { } ,
Original file line number Diff line number Diff line change 3939 margin : 0.1875rem 0 0 -0.375rem ;
4040}
4141
42+ : host ([actual-placement-type = "Left" ]) [dir = rtl ] .ui5-popover-arrow : after {
43+ margin : .1875rem .25rem 0 0 ;
44+ }
45+
46+ : host ([actual-placement-type = "Bottom" ]) [dir = rtl ] .ui5-popover-arrow : after {
47+ margin : .1875rem .125rem 0 0 ;
48+ }
49+
50+ : host ([actual-placement-type = "Top" ]) [dir = rtl ] .ui5-popover-arrow : after {
51+ margin : -0.4375rem .125rem 0 0
52+ }
53+
4254/* pointing downward arrow */
4355: host ([actual-placement-type = "Top" ]) .ui5-popover-arrow {
4456 left : calc (50% - 0.5625rem );
6476 margin : 0.125rem 0 0 0.25rem ;
6577}
6678
79+ : host (: not ([actual-placement-type ])) [dir = rtl ] .ui5-popover-arrow : after ,
80+ : host ([actual-placement-type = "Right" ]) [dir = rtl ] .ui5-popover-arrow : after {
81+ margin : .1875rem -.375rem 0 0 ;
82+ }
83+
6784: host ([no-arrow ]) .ui5-popover-arrow {
6885 display : none;
6986}
You can’t perform that action at this time.
0 commit comments