feat(@lion/ui): add _previousIconTemplate and _nextIconTemplate to LionCalendar (#1954)

This commit is contained in:
Barni 2023-04-03 17:00:30 +02:00 committed by GitHub
parent b88af36eec
commit a5f35158c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/ui': patch
---
feat(@lion/ui): add \_previousIconTemplate and \_nextIconTemplate to LionCalendar

View file

@ -523,11 +523,16 @@ export class LionCalendar extends LocalizeMixin(LitElement) {
@click=${clickDateDelegation}
?disabled=${disabled}
>
<
${this._previousIconTemplate()}
</button>
`;
}
// eslint-disable-next-line class-methods-use-this
_previousIconTemplate() {
return html`&lt;`;
}
/**
* @param {string} type
* @param {string} nextMonth
@ -554,11 +559,16 @@ export class LionCalendar extends LocalizeMixin(LitElement) {
@click=${clickDateDelegation}
?disabled=${disabled}
>
&gt;
${this._nextIconTemplate()}
</button>
`;
}
// eslint-disable-next-line class-methods-use-this
_nextIconTemplate() {
return html`&gt;`;
}
/**
*
* @param {string} mode