Skip to content

Commit b376b81

Browse files
javier-godoypaodb
authored andcommitted
chore: enhance fc-date-picker button styles
1 parent 13228a8 commit b376b81

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

src/main/resources/META-INF/frontend/fc-date-picker/fc-date-picker-buttons.js

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ export class FcDatePickerButtons extends ThemableMixin(LitElement) {
2727
}
2828
render() {
2929
return html`
30-
<button id="up"
31-
type="button"
30+
<div id="up">
31+
<button type="button"
3232
aria-label="Increment"
3333
@click=${this._clickUp}></button>
34-
<button id="down"
35-
type="button"
34+
</div>
35+
<div id="down">
36+
<button type="button"
3637
aria-label="Decrement"
3738
@click=${this._clickDown}></button>
39+
</div>
3840
`;
3941
}
4042
static get styles() {
@@ -45,19 +47,32 @@ export class FcDatePickerButtons extends ThemableMixin(LitElement) {
4547
align-self: stretch;
4648
justify-content: space-evenly;
4749
}
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+
}
4861
button {
4962
padding: 0;
50-
margin: 0;
5163
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);
5368
}
5469
button::before {
5570
display: block;
5671
}
57-
#up::before {
72+
#up button::before {
5873
content: "\\25B2";
5974
}
60-
#down::before {
75+
#down button::before {
6176
content: "\\25BC";
6277
}`;
6378
}

0 commit comments

Comments
 (0)