diff --git a/packages/button/README.md b/packages/button/README.md index bb2a874ca..1a4850135 100644 --- a/packages/button/README.md +++ b/packages/button/README.md @@ -15,7 +15,7 @@ export default { }; ``` -```js story +```js preview-story export const main = () => html` Default `; ``` diff --git a/packages/button/src/LionButton.js b/packages/button/src/LionButton.js index 67466ff1d..69b4f7de5 100644 --- a/packages/button/src/LionButton.js +++ b/packages/button/src/LionButton.js @@ -207,7 +207,7 @@ export class LionButton extends DisabledWithTabIndexMixin(SlotMixin(LitElement)) } __setupDelegationInConstructor() { - // do not move to connectedCallback, otherwise IE11 breaks + // do not move to connectedCallback, otherwise IE11 breaks. // more info: https://github.com/ing-bank/lion/issues/179#issuecomment-511763835 this.addEventListener('click', this.__clickDelegationHandler, true); } diff --git a/packages/switch/README.md b/packages/switch/README.md index bcc9bf2b2..8fcf76d57 100644 --- a/packages/switch/README.md +++ b/packages/switch/README.md @@ -14,7 +14,7 @@ export default { }; ``` -```js story +```js preview-story export const main = () => html` `; ``` diff --git a/packages/switch/src/LionSwitch.js b/packages/switch/src/LionSwitch.js index 33ce22bb9..2ae9c15ef 100644 --- a/packages/switch/src/LionSwitch.js +++ b/packages/switch/src/LionSwitch.js @@ -1,6 +1,5 @@ -import { ChoiceInputMixin, LionField } from '@lion/form-core'; import { css, html, ScopedElementsMixin } from '@lion/core'; - +import { ChoiceInputMixin, LionField } from '@lion/form-core'; import { LionSwitchButton } from './LionSwitchButton.js'; export class LionSwitch extends ScopedElementsMixin(ChoiceInputMixin(LionField)) { @@ -72,7 +71,7 @@ export class LionSwitch extends ScopedElementsMixin(ChoiceInputMixin(LionField)) } /** - * Override this function from ChoiceInputMixin + * Override this function from ChoiceInputMixin. */ // eslint-disable-next-line class-methods-use-this _isEmpty() {} diff --git a/packages/tabs/README.md b/packages/tabs/README.md index 8a0700685..f3b4e6269 100644 --- a/packages/tabs/README.md +++ b/packages/tabs/README.md @@ -14,7 +14,7 @@ export default { }; ``` -```js story +```js preview-story export const main = () => html` @@ -37,14 +37,14 @@ export const main = () => html` npm i --save @lion/tabs; ``` -### Usage - ```js -import { LiontTabs } from '@lion/tabs'; +import { LionTabs } from '@lion/tabs'; // or import '@lion/tabs/lion-tabs.js'; ``` +### Usage + ```html @@ -106,7 +106,7 @@ Below, we demonstrate on how you could dynamically add new tab + panels. ```js preview-story export const distributeNewElement = () => { - const tagName = 'lion-tabs-experimental'; + const tagName = 'demo-tabs-add-dynamically'; if (!customElements.get(tagName)) { customElements.define( tagName, @@ -119,20 +119,17 @@ export const distributeNewElement = () => { render() { return html`

Append

-

panel 1

panel 2

+

Push

-

panel 1

@@ -145,6 +142,9 @@ export const distributeNewElement = () => { `, )}
+ `; } constructor() { @@ -180,7 +180,7 @@ export const distributeNewElement = () => { }, ); } - return html` `; + return html` `; }; ``` diff --git a/packages/tabs/src/LionTabs.js b/packages/tabs/src/LionTabs.js index 35d7a777f..d1f742e78 100644 --- a/packages/tabs/src/LionTabs.js +++ b/packages/tabs/src/LionTabs.js @@ -67,7 +67,7 @@ export class LionTabs extends LitElement { static get properties() { return { /** - * index number of the selected tab + * index number of the selected tab. */ selectedIndex: { type: Number,