From 1f018bafdf0909f5f9522bdfd84e04b01519e980 Mon Sep 17 00:00:00 2001 From: barni52 Date: Thu, 16 Mar 2023 11:27:28 +0100 Subject: [PATCH] feat(@lion/ui): add _invokerIconTemplate to LionInputDatepicker --- .changeset/stupid-emus-compete.md | 5 +++++ .../input-datepicker/src/LionInputDatepicker.js | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .changeset/stupid-emus-compete.md diff --git a/.changeset/stupid-emus-compete.md b/.changeset/stupid-emus-compete.md new file mode 100644 index 000000000..44774f9c0 --- /dev/null +++ b/.changeset/stupid-emus-compete.md @@ -0,0 +1,5 @@ +--- +'@lion/ui': patch +--- + +feat(@lion/ui): add \_invokerIconTemplate to LionInputDatepicker diff --git a/packages/ui/components/input-datepicker/src/LionInputDatepicker.js b/packages/ui/components/input-datepicker/src/LionInputDatepicker.js index fa7ba82d3..8598442d1 100644 --- a/packages/ui/components/input-datepicker/src/LionInputDatepicker.js +++ b/packages/ui/components/input-datepicker/src/LionInputDatepicker.js @@ -279,11 +279,19 @@ export class LionInputDatepicker extends ScopedElementsMixin( aria-label="${this.msgLit('lion-input-datepicker:openDatepickerLabel')}" title="${this.msgLit('lion-input-datepicker:openDatepickerLabel')}" > - 📅 + ${this._invokerIconTemplate()} `; } + /** + * Subclassers can replace this with their custom extension invoker icon + */ + // eslint-disable-next-line class-methods-use-this + _invokerIconTemplate() { + return html`📅`; + } + _setupOverlayCtrl() { super._setupOverlayCtrl();