File tree 3 files changed +23
-0
lines changed
3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 5
5
aria-modal =" {{ _ariaModal }} "
6
6
aria-label =" {{ _ariaLabel }} "
7
7
aria-labelledby =" {{ _ariaLabelledBy }} "
8
+ dir =" {{ dir }} "
8
9
>
9
10
10
11
<span class =" first-fe" data-ui5-focus-trap tabindex =" 0" @focusin ={{ forwardToLast }} ></span >
Original file line number Diff line number Diff line change 1
1
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js" ;
2
+ import { getRTL } from "@ui5/webcomponents-base/dist/config/RTL.js" ;
2
3
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js" ;
3
4
import { getFirstFocusableElement , getLastFocusableElement } from "@ui5/webcomponents-base/dist/util/FocusableElements.js" ;
4
5
import createStyleInHead from "@ui5/webcomponents-base/dist/util/createStyleInHead.js" ;
@@ -456,6 +457,10 @@ class Popup extends UI5Element {
456
457
return this . ariaLabel || undefined ;
457
458
}
458
459
460
+ get dir ( ) {
461
+ return getRTL ( ) ? "rtl" : "ltr" ;
462
+ }
463
+
459
464
get styles ( ) {
460
465
return {
461
466
root : { } ,
Original file line number Diff line number Diff line change 39
39
margin : 0.1875rem 0 0 -0.375rem ;
40
40
}
41
41
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
+
42
54
/* pointing downward arrow */
43
55
: host ([actual-placement-type = "Top" ]) .ui5-popover-arrow {
44
56
left : calc (50% - 0.5625rem );
64
76
margin : 0.125rem 0 0 0.25rem ;
65
77
}
66
78
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
+
67
84
: host ([no-arrow ]) .ui5-popover-arrow {
68
85
display : none;
69
86
}
You can’t perform that action at this time.
0 commit comments