File tree Expand file tree Collapse file tree 1 file changed +23
-8
lines changed
src/main/resources/META-INF/frontend/fc-date-picker Expand file tree Collapse file tree 1 file changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,16 @@ export class FcDatePickerButtons extends ThemableMixin(LitElement) {
27
27
}
28
28
render ( ) {
29
29
return html `
30
- <but to n id= "up"
31
- type = "button"
30
+ <div id= "up" >
31
+ <but to n type= "button"
32
32
aria-label = "Increment"
33
33
@click = ${ this . _clickUp } > </ butto n>
34
- <butto n id= "down"
35
- type = "button"
34
+ </ div>
35
+ <div id= "down" >
36
+ <butto n type= "button"
36
37
aria-label = "Decrement"
37
38
@click = ${ this . _clickDown } > </ butto n>
39
+ </ div>
38
40
` ;
39
41
}
40
42
static get styles ( ) {
@@ -45,19 +47,32 @@ export class FcDatePickerButtons extends ThemableMixin(LitElement) {
45
47
align-self : stretch;
46
48
justify-content : space-evenly;
47
49
}
50
+ div {
51
+ min-height : 50% ;
52
+ display : flex;
53
+ padding-left : calc (0.575em + var (--lumo-border-radius-m ) / 4 - 1px );
54
+ }
55
+ div # up {
56
+ align-items : flex-end;
57
+ }
58
+ div # down {
59
+ align-items : flex-start;
60
+ }
48
61
button {
49
62
padding : 0 ;
50
- margin : 0 ;
51
63
max-height : 0.9rem ;
52
- box-sizing : content-box;
64
+ line-height : 100% ;
65
+ border : none;
66
+ background-color : transparent;
67
+ color : var (--lumo-contrast-60pct );
53
68
}
54
69
button ::before {
55
70
display : block;
56
71
}
57
- # up ::before {
72
+ # up button ::before {
58
73
content : "\\25B2" ;
59
74
}
60
- # down ::before {
75
+ # down button ::before {
61
76
content : "\\25BC" ;
62
77
}` ;
63
78
}
You can’t perform that action at this time.
0 commit comments