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 4
4
id =" {{ _id }} -select"
5
5
@click =" {{ _onclick }} "
6
6
>
7
+ {{ #if selectedOptionIcon }}
8
+ <ui5-icon
9
+ aria-hidden =" true"
10
+ class =" ui5-select-option-icon"
11
+ name =" {{ selectedOptionIcon }} "
12
+ dir =" {{ effectiveDir }} "
13
+ ></ui5-icon >
14
+ {{ /if }}
7
15
<div class =" ui5-select-label-root"
8
16
data-sap-focus-ref
9
17
tabindex =" {{ tabIndex }} "
Original file line number Diff line number Diff line change @@ -709,6 +709,10 @@ class Select extends UI5Element {
709
709
}
710
710
}
711
711
712
+ get selectedOptionIcon ( ) {
713
+ return this . selectedOption . icon ;
714
+ }
715
+
712
716
async _getPopover ( ) {
713
717
const staticAreaItem = await this . getStaticAreaItemDomRef ( ) ;
714
718
return staticAreaItem . querySelector ( "[ui5-popover]" ) ;
Original file line number Diff line number Diff line change 27
27
font-weight : normal;
28
28
}
29
29
30
+ .ui5-select-option-icon {
31
+ padding-left : 0.5rem ;
32
+ color : var (--sapField_TextColor );
33
+ align-self : center;
34
+ }
35
+
30
36
: host [dir = "rtl" ].ui5-select-root .ui5-select-label-root {
31
37
padding-left : 0 ;
32
38
padding-right : 0.5rem ;
33
39
}
34
40
41
+ : host [dir = "rtl" ] .ui5-select-option-icon {
42
+ padding-right : 0.5rem ;
43
+ padding-left : 0 ;
44
+ }
45
+
35
46
: host (: not ([disabled ])) {
36
47
cursor : pointer;
37
48
}
You can’t perform that action at this time.
0 commit comments