From f478b988f8cd91531d7ca252dc98eb1875de986a Mon Sep 17 00:00:00 2001 From: Thomas Allmer Date: Thu, 25 Jul 2019 15:06:11 +0200 Subject: [PATCH] feat(button): add template hooks for before/after default slot --- packages/button/src/LionButton.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/button/src/LionButton.js b/packages/button/src/LionButton.js index 196b48008..623bb334f 100644 --- a/packages/button/src/LionButton.js +++ b/packages/button/src/LionButton.js @@ -22,13 +22,25 @@ export class LionButton extends DelegateMixin(SlotMixin(LionLitElement)) { render() { return html`
+ ${this._renderBefore()} + ${this._renderAfter()}
`; } + // eslint-disable-next-line class-methods-use-this + _renderBefore() { + return html``; + } + + // eslint-disable-next-line class-methods-use-this + _renderAfter() { + return html``; + } + static get styles() { return [ css`