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